List states and cities
list_locationsList US states with business counts, or the cities of one state (pass state, optionally search to narrow by name). Free.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_locations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many cities (default 25). | |
| state | No | 2-letter state code: list the cities of this state. Leave out to list the states. | |
| search | No | Only cities whose name contains this text. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | Yes | ||
| cities | Yes | ||
| states | Yes |