Skip to main content
Glama

Zip Codes Lookup

ZipCodesLookup
Read-only

Zip Codes Lookup: Zip Codes Lookup finds all postal codes within a US city or resolves a five-digit ZIP code to its city and state. Paid plans add the IANA time zone, geographic coordinates and the distance from the ZIP to a second ZIP. (Cost: 2 credits)

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ZipCodesLookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
zipNoThe zip code for which you want to get the data
cityNoThe city for which you want to get the zip code data (e.g., Los Angeles)
stateNoThe state for which you want to get the zip code data
distanceToNoA second US ZIP code; adds a distance object with the straight-line distance between the two ZIP centroids

Output Schema

NameRequiredDescriptionDefault
dataNo
errorNoError message, null on success
statusNo"ok" on success

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, and destructiveHint=false, so the safety profile is covered. The description adds important behavioral context not in annotations: cost is 2 credits and several returned fields require a paid plan.

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

Conciseness4/5

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

The description is two sentences and front-loads the core behavior. It repeats the tool name at the start, which is minor waste, but otherwise every sentence carries useful 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?

Given the presence of an output schema, the description need not explain return shapes. It covers the main modes, paid-plan limitations, and cost, though it could more explicitly clarify how zip versus city plus state should be combined.

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%, so the baseline is 3. The description adds meaning beyond the schema by clarifying the city/state versus ZIP modes and by noting that distanceTo depends on paid-plan features, which is not stated in the schema descriptions.

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 states two specific operations: finding all postal codes within a US city and resolving a five-digit ZIP to city/state. It names the resource and scope precisely enough for an agent to distinguish it from general geographic or demographic lookups like ZIPDemographics.

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?

It clearly presents the two main usage contexts: city/state to ZIPs and ZIP to city/state. It does not explicitly name when to use this over sibling tools such as ZIPDemographics or DistanceCalculator, but the described contexts are concrete and actionable.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.