Skip to main content
Glama
PostalKit MCP server

PostalKit MCP server

Official
by postalkit

Find postal codes by place name

find_postal_codes_by_place
Read-onlyIdempotent

Find postal codes for a state and narrow results by municipality or colonia when you know the address but not the código postal.

Instructions

Find the postal codes for a state, optionally narrowed by municipality and colonia names. Use this when the user knows the address but not the código postal.

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": {
      "state": "<state>"
    },
    "name": "find_postal_codes_by_place"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number for paginated results (default 1)
exactNoMatch names exactly instead of partially
stateYesState name, e.g. 'Jalisco' or 'Ciudad de México'
coloniaNoColonia (settlement) name, e.g. 'Americana'
municipalityNoMunicipality or alcaldía name, e.g. 'Guadalajara'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.5/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 the filter-narrowing behavior but says nothing about result format, pagination limits, or the default matching mode (partial vs exact) that meaningfully affects results.

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?

Two short sentences, front-loaded with the action and followed by the use condition; nothing is redundant. Minor room to tighten phrasing (e.g., mixing 'código postal' with 'postal codes'), but it reads cleanly.

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 read-only, five-parameter lookup with no output schema, the description covers what it returns (postal codes) and the required scope. It is slightly thin on pagination and matching behavior, but an agent can still call it correctly from schema plus annotations.

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 description coverage is 100%, so all five parameters are already documented, which sets the baseline at 3. The description adds modest value by framing municipality and colonia as optional narrowing filters applied on top of the required state, but gives no detail on the page or exact flags.

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 ('Find the postal codes for a state') and clarifies the scope with optional municipality/colonia narrowing. It does not name or differentiate itself from close siblings such as search_postal_codes or lookup_postal_code, so an agent must infer the distinction.

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?

The sentence 'Use this when the user knows the address but not the código postal' gives one clear triggering condition. However, it provides no exclusions or explicit alternatives, so the agent is left to guess how this differs from search_postal_codes or reverse_geocode.

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