Geocode a place name
geocode_locationResolve a free-text place name to candidate latitude/longitude coordinates, so ambiguous locations can be identified before passing chosen coordinates to weather tools.
Instructions
Resolve a free-text place name (e.g. "Tokyo", "Springfield, Illinois") to candidate latitude/longitude coordinates. Use this first when a user names an ambiguous place, then pass the chosen coordinates to the weather tools.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>",
"count": "<count>"
},
"name": "geocode_location"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | Maximum number of candidate matches to return (1-10). | |
| query | Yes | Place name to search for, e.g. "Springfield". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| matches | Yes |