MCPOutils MCP/Données de référence/list_states

list_states

Readreference:read

List the states / provinces / regions a location's stateIso can be. Global reference data — no clientId. Pass `country` (two-letter code, e.g. US) to get that country's complete list (the value to send is each entry's `code`). Without `country` all states are returned in pages: pass the previous `nextCursor` as `cursor` to continue. Filter with `search` or `type`.

Paramètres
countrystringfacultatif
Two-letter ISO country code, e.g. US. Omit to list across all countries (paginated).
searchstringfacultatif
Match state code, name or alias (accent-insensitive)
typestringfacultatif
Subdivision type, e.g. state, province, prefecture
limitnumberfacultatif
Page size when `country` is omitted (1–1000, default 200)
cursorstringfacultatif
`nextCursor` from the previous page
Exemple de requête
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "list_states",
    "arguments": {}
  }
}
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.