Skip to main content
Glama

ZIP Code Lookup

zipcode_lookup
Read-onlyIdempotent

Retrieve city, region, country, and geographic coordinates for any ZIP or postal code. Optionally narrow results by country using an ISO 3166-1 alpha-2 code.

Instructions

Look up a single ZIP or postal code to retrieve its city, region, country, their codes and geographic coordinates. Optionally filter by country using an ISO 3166-1 alpha-2 code.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesZIP or postal code to look up (e.g. '10009', 'SW1A 1AA').
countryNoISO 3166-1 alpha-2 country code (e.g. 'US', 'GB', 'DE'). Narrows the search to the specified country.
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations indicate readOnly, idempotent, and non-destructive behavior, which the description aligns with. The description adds context by detailing the return fields (city, region, country, codes, coordinates) beyond annotations, but does not mention edge cases or error behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences, succinctly covering purpose and optional filter. No redundant or extraneous information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple lookup tool without output schema, the description adequately explains what is returned. It could be improved by specifying the response structure (e.g., object containing keys like city, region, etc.) but overall covers essential behavior.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% but the description adds value by providing examples for 'code' (e.g., '10009', 'SW1A 1AA') and explaining that 'country' is an ISO 3166-1 alpha-2 code that narrows the search. This supplements the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool looks up a single ZIP or postal code and specifies the returned data (city, region, country, codes, coordinates). It distinguishes from siblings like zipcode_bulk_lookup by emphasizing 'single' and from zipcode_by_city or zipcode_by_region by the lookup method.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies single code lookup but does not explicitly compare with alternatives (e.g., zipcode_bulk_lookup for multiple codes, zipcode_by_city for city-based lookup). No when-to-use or when-not-to-use guidance is provided.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/api-freaks/apifreaks-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server