Skip to main content
Glama
Lulu-The-Narwhal

postal-lookup-mcp

lookup_postal_code

Read-only

Resolve a postal or ZIP code to its city, state/region, and coordinates. Provide a 2-letter country code and postal code to get matching place names.

Instructions

Resolve a postal/ZIP code to its place name(s), state/region, and coordinates. country_code is a 2-letter ISO code (US, GB, DE, ...); postal_code format varies by country (e.g. "90210" for the US, "SW1A 1AA" style outward codes for the UK). Use for "what city is ZIP 90210 in", "where is postal code X in country Y", or any question that needs a place name/region/lat-lon from a postal code -- not for the reverse (place name to postal code) or for full street address lookup. Some postal codes span multiple places, in which case all of them are returned. Returns an error dict (never raises) if the code isn't recognized for that country.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
postal_codeYes
country_codeYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

The readOnlyHint annotation is present, and the description adds valuable behavioral context beyond it: description of multi-place postal codes, retourning all matches, and the error dict behavior (never raises). These are non-obvious behaviors that help the agent anticipate outcomes.

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 well-structured and front-loaded with purpose, followed by usage exclusions and behavioral edge cases. Every sentence adds distinct value, with no redundancy or filler.

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

Completeness5/5

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

Given the tool's moderate complexity (2 params, multiple return possibilities), the description covers purpose, parameter formats, usage exclusions, edge cases, and error behavior. It provides a complete picture even without an output schema.

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

Parameters5/5

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

Schema description coverage is 0%, but the description fully compensates by explaining both parameters: country_code as a 2-letter ISO code with examples, and postal_code with country-specific format examples. This provides essential semantic detail missing from 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 uses a specific verb ('Resolve') and clearly identifies the resource (postal/ZIP code to place names, state/region, coordinates). It distinguishes itself from reverse lookups and full street address lookup, making the tool's purpose unambiguous.

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

Usage Guidelines5/5

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

The description provides explicit when-to-use examples ('what city is ZIP 90210 in') and states what it is not for ('not for the reverse... or for full street address lookup'). This clearly guides an agent on when to select this tool over alternatives.

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/Lulu-The-Narwhal/postal-lookup-mcp'

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