Geocode a place name
geocode_locationResolve a free-text place name to ranked latitude/longitude matches, enabling location-based agricultural decision support.
Instructions
Resolve a free-text place name to ranked latitude/longitude matches. Required first step before using the other tools, which take coordinates rather than place names.
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": {
"name": "<name>"
},
"name": "geocode_location"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | A bare place name, e.g. 'Ames' or 'Nakuru' — not a compound 'City, Region' string, which the underlying geocoder often fails to match. Use country_code to disambiguate instead. | |
| count | No | Max number of matches to return (default 5). | |
| country_code | No | ISO 3166-1 alpha-2 country code to disambiguate, e.g. 'US'. |