Skip to main content
Glama
PostalKit MCP server

PostalKit MCP server

Official
by postalkit

Search postal codes by prefix

search_postal_codes
Read-onlyIdempotent

Find Mexican postal codes by entering a leading digit prefix, such as '066' to locate codes around Colonia Roma in CDMX. Supports pagination for browsing results.

Instructions

List Mexican postal codes that start with a prefix, e.g. '066' for the codes around Colonia Roma in CDMX.

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": {
      "prefix": "<prefix>"
    },
    "name": "search_postal_codes"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number for paginated results (default 1)
prefixYesLeading digits of the postal code

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint, so safety and idempotency are covered. The description adds useful scope context (Mexican postal codes, prefix matching against the leading digits), but says nothing about result volume, pagination limits, or what a returned record contains.

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?

One front-loaded sentence: verb, resource, scope, then a concrete example. Nothing is redundant and nothing is buried.

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 two-parameter read tool with full schema coverage and complete safety annotations, the description is nearly sufficient. The only remaining gap is that it never indicates the shape or size of results, though with no output schema that is a minor omission.

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%, so both parameters are already documented in the schema. The description reinforces prefix semantics with a concrete example, but adds no format or constraint detail (e.g. digit-only, max 5 digits) beyond what the schema's pattern already states.

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?

States a specific verb and resource ('List Mexican postal codes') plus the scoping rule ('that start with a prefix'), which cleanly separates it from exact-lookup siblings like lookup_postal_code and place-based ones like find_postal_codes_by_place. It does not name any sibling explicitly, so it stops short of a 5.

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?

Usage is only implied: the example ('066' for codes around Colonia Roma) shows a caller who knows a partial code, but there is no statement of when to prefer this over the place-based or exact-lookup alternatives, and no exclusions.

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