Skip to main content
Glama
PostalKit MCP server

PostalKit MCP server

Official
by postalkit

Look up a postal code

lookup_postal_code
Read-onlyIdempotent

Resolve a five-digit Mexican postal code into its state, municipality, city, and colonias for address validation and location details.

Instructions

Get the state (estado), municipality (municipio/alcaldía), city and every colonia (settlement) for one Mexican postal code.

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": {
      "code": "<code>"
    },
    "name": "lookup_postal_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesFive-digit Mexican postal code (código postal), e.g. 06600

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 the safety profile is covered. The description adds genuinely useful behavior by stating the result spans state, municipality, city and *every* colonia (i.e., a one-to-many enumeration, not a single settlement). It says nothing about what happens for an unknown or blank code, since no output schema exists.

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 sentence, zero filler, with the resource ('one Mexican postal code') and the returned fields in the right order. The parenthetical Spanish aliases (estado, municipio/alcaldía, colonia) are justified by the domain and cost almost nothing.

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 one-parameter lookup with no output schema, the description covers the essential contract: exact-code input and a full administrative breakdown of the output. Minor gaps remain around error/not-found behavior and whether matching is exact-only, but nothing an agent needs to select or invoke it correctly is missing.

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 a single required 'code' parameter already documented with pattern and example. The description reinforces the 'one code' constraint and the Mexican scope, which is useful framing but adds no syntax or format detail beyond the schema; baseline 3 applies.

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 names a specific verb and resource ('Get the state... municipality... city and every colonia') for 'one Mexican postal code', so the returned fields are explicit. That return shape implicitly separates it from geocode_postal_code or reverse_geocode, but the description never actually names a sibling to sharpen the contrast.

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 phrase 'for one Mexican postal code' tells the agent this takes a single exact code rather than a place name or query, which rules out search-style siblings contextually. There is no explicit when-to-use/when-not statement and no named alternative for coordinate or reverse lookups.

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