Find US states and places
find_placesWhere an advanced search can run — the US and its territories for now. With no arguments: the US and its territories (Puerto Rico, Guam …), with their codes. With country 'US': its states and their codes. With q: US places whose name contains q, with their codes and states — for run_advanced_search's places, or search_leads' location_code.
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": "find_places"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Part of a place's name, at least 2 characters. | |
| country | No | 'US', or a US territory's code ('PR', 'GU', 'VI', 'AS', 'MP'). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| places | No | With country 'US' alone: how many places it has. With q: the matches, each { code, name, region } (up to 50). | |
| region | No | With country 'US' alone: what its regions are called (state). | |
| country | No | ||
| regions | No | With country 'US' alone: each state, { code, name, places }. | |
| countries | No | With no arguments: the US and its territories, each { code, name, region, places }. | |
| total_matching | No | With q: every match, of which up to 50 are listed. |