MCPOutils MCP/Données de référence/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.

Paramètres
field"country" | "state"obligatoire
What to resolve
valuestringobligatoire
The country or state as the user or source gave it
countrystringfacultatif
Two-letter country code — required when field=state
valueLongstringfacultatif
Optional long name from Google Places (value is then the short name)
Exemple de requête
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "resolve_geo_value",
    "arguments": {
      "field": "country",
      "value": "string"
    }
  }
}
Exemple de réponse
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "..."
      }
    ]
  }
}

La forme de la réponse est indicative — le contenu réel dépend de l'outil et de vos données.