Look Up City
envia_lookup_cityLook up cities by name to find their postal codes, state, and region information, optionally filtered by country code.
Instructions
Look up cities by name to find postal codes, state, and region information.
Uses the Envia Geocodes API which requires no authentication.
Args: city — City name to search for (e.g., "Monterrey", "Guadalajara") country_code — Country code (default: "MX") response_format — "markdown" (default) or "json"
Returns: List of matching cities with state, postal codes, and region info.
Examples: Look up Monterrey: city="Monterrey" Look up with country: city="Monterrey", country_code="MX"
Errors: 500+ — Geocodes API temporarily unavailable (auto-retries with production fallback)
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": {
"city": "<city>"
},
"name": "envia_lookup_city"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | Yes | City name to search for (e.g., "Monterrey", "Guadalajara") | |
| country_code | No | Country code (default: MX) | MX |
| response_format | No | Output format: 'markdown' for human-readable or 'json' for machine-readable | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | Yes | Number of matching cities | |
| cities | Yes | ||
| city_query | Yes |