MCPFerramentas MCP/Dados de referência/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
Exemplo de solicitação
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "list_states",
"arguments": {}
}
}Exemplo de resposta
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "..."
}
]
}
}O formato da resposta é ilustrativo — o conteúdo real depende da ferramenta e dos seus dados.