MCPHerramientas MCP/Datos de referencia/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`.

Parámetros
countrystringopcional
Two-letter ISO country code, e.g. US. Omit to list across all countries (paginated).
searchstringopcional
Match state code, name or alias (accent-insensitive)
typestringopcional
Subdivision type, e.g. state, province, prefecture
limitnumberopcional
Page size when `country` is omitted (1–1000, default 200)
cursorstringopcional
`nextCursor` from the previous page
Solicitud de ejemplo
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "list_states",
    "arguments": {}
  }
}
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.