MCPHerramientas MCP/Datos de referencia/resolve_geo_value
resolve_geo_value
Readreference:read
Ask what code OS would store for a country or state value, BEFORE creating or editing a location. Global reference data — no clientId. field=country with a name or code returns its two-letter code; field=state needs `country` and returns the state code. Pass Google Places' short and long names as `value` and `valueLong` — they must agree. Returns { resolved: false } when the value is not in the reference list (OS never guesses); in that case pick from list_countries / list_states.
Parámetros
field"country" | "state"obligatorio
What to resolve
valuestringobligatorio
The country or state as the user or source gave it
countrystringopcional
Two-letter country code — required when field=state
valueLongstringopcional
Optional long name from Google Places (value is then the short name)
Solicitud de ejemplo
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "resolve_geo_value",
"arguments": {
"field": "country",
"value": "string"
}
}
}Respuesta de ejemplo
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "..."
}
]
}
}La forma de la respuesta se muestra a modo ilustrativo — el contenido real depende de la herramienta y de tus datos.