Skip to main content
Glama
PostalKit MCP server

PostalKit MCP server

Official
by postalkit

Geocode a postal code

geocode_postal_code
Read-onlyIdempotent

Get latitude and longitude for a five-digit Mexican postal code, optionally refined by street name and number, to geocode addresses.

Instructions

Get latitude and longitude for a postal code, optionally refined with a street name and number.

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": "geocode_postal_code"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, openWorldHint, and idempotentHint, so the safety and determinism profile is covered. The description adds only the output contract (lat/long) and the refinement behavior; it says nothing about what happens when a code or street is not found, which matters for an open-world geocoder.

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?

A single front-loaded sentence with the primary output stated first and the optional refinement trailing. No filler, no restatement of the title.

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

Completeness3/5

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

For a simple three-parameter read tool with full annotation coverage and full schema coverage, the core is present: inputs, optional refinement, and return values. It falls short on error/empty-result behavior and on positioning against the lookup and reverse-geocode siblings, which is what an agent most needs at selection time.

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, but the description adds meaning beyond the schema's terse 'Street name'/'Street number' labels by explaining that these fields refine the postal-code point to a more precise location. That clarifies the relationship between parameters and result precision rather than restating the schema.

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 ('Get latitude and longitude for a postal code') plus the optional refinement path, so the agent knows exactly what comes back. It does not, however, distinguish itself from close siblings such as lookup_postal_code or reverse_geocode, so the boundary requires inference.

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

Usage Guidelines2/5

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

The word 'optionally' implies that adding street and number refines the result, but there is no explicit statement of when to use this versus lookup_postal_code or reverse_geocode, and no note on when the optional fields are worth supplying or required together.

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