List states and cities
list_locationsList US states with lead counts, or the cities of one state (pass state, optionally search to narrow by name). Use the exact values in the state and city filters. 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 | Maximum cities to return (default 50). | |
| state | No | 2-letter state code: list the cities of this state. | |
| search | No | Only cities whose name contains this text. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | Yes | ||
| cities | Yes | ||
| states | Yes |