MCPMCP-Tools/Referenzdaten/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.

Parameter
field"country" | "state"erforderlich
What to resolve
valuestringerforderlich
The country or state as the user or source gave it
countrystringoptional
Two-letter country code — required when field=state
valueLongstringoptional
Optional long name from Google Places (value is then the short name)
Beispielanfrage
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "resolve_geo_value",
    "arguments": {
      "field": "country",
      "value": "string"
    }
  }
}
Beispielantwort
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "..."
      }
    ]
  }
}

Die Antwortform dient nur zur Veranschaulichung — der tatsächliche Inhalt hängt vom Tool und Ihren Daten ab.