MCPMCP-Tools/Referenzdaten/list_countries

list_countries

Readreference:read

List the countries a location can belong to (all ISO 3166-1 countries). Global reference data — no clientId. Returns each country's two-letter code (what create_location's countryIso takes), name, dial code, whether it has states/regions, and whether a postal address there uses a state at all. Optionally filter by `search` (code, name or alias, e.g. "usa") or `hasRegions`.

Parameter
searchstringoptional
Match country code, name or alias (accent-insensitive)
hasRegionsbooleanoptional
Only countries that have (true) or have no (false) states/regions
Beispielanfrage
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "list_countries",
    "arguments": {}
  }
}
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.