Skip to main content
Glama

ZIP Codes by City

zipcode_by_city
Read-onlyIdempotent

Retrieve all ZIP codes for a given city. Use state name to disambiguate identical city names. Results are paginated with up to 500 per page.

Instructions

Get all ZIP/postal codes for a city. Providing 'state_name' is recommended to disambiguate cities with the same name. Returns paginated results (up to 500 per page).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cityYesCity name to search (e.g. 'Brooklyn', 'Manchester').
countryYesISO 3166-1 alpha-2 country code (e.g. 'US', 'GB', 'DE').
state_nameNoState, province, or region name (e.g. 'New York', 'England'). Recommended to disambiguate.
pageNoPage number for paginated results (max 500 results per page).
Behavior4/5

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

Annotations already convey read-only, idempotent, and non-destructive nature. The description adds pagination behavior ('up to 500 per page'), which is beneficial and not covered by annotations.

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 extremely concise with two sentences: one for purpose and one for usage tip. No filler words, and the most important information is front-loaded.

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?

The description covers purpose, disambiguation guidance, and pagination limits. While it lacks details about the response format, the annotations (e.g., openWorldHint) and common API patterns compensate. It is fairly complete for a simple lookup tool.

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

Parameters3/5

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

Schema coverage is 100% with detailed parameter descriptions. The description reiterates the recommendation for 'state_name' but adds no new semantic meaning beyond the schema. Baseline 3 is appropriate.

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

Purpose4/5

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

The description clearly states the tool's purpose: 'Get all ZIP/postal codes for a city.' It uses a specific verb ('Get') and resource ('ZIP/postal codes'), but does not explicitly differentiate from sibling tools like zipcode_lookup or zipcode_by_region, which handle similar queries.

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

Usage Guidelines4/5

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

The description recommends providing 'state_name' to disambiguate cities, offering practical usage guidance. However, it does not mention when to avoid using this tool or suggest alternatives among siblings.

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