Skip to main content
Glama

Look up an Indian pincode

lookup_pincode
Read-onlyIdempotent

Returns the state, district, and post offices for a 6-digit Indian pincode using bundled postal data. Use it to resolve pincode locations, noting that newer codes may be missing.

Instructions

Returns the state, district and post offices for a 6-digit Indian pincode from the bundled GeoNames postal-code list (CC BY 4.0, built from the India Post list). District names can be older than the current official name, and a pincode created after the data date (see data_as_of) will not be found.

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": {
      "pincode": "<pincode>"
    },
    "name": "lookup_pincode"
  }
}

Input Schema

NameRequiredDescriptionDefault
pincodeYesThe 6-digit pincode

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so the safety profile is covered. The description goes further by disclosing provenance (GeoNames, CC BY 4.0, sourced from India Post), the staleness failure mode (pincodes created after data_as_of will not be found), and the known accuracy caveat about outdated district names — real behavioral context beyond the structured fields.

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?

Two sentences, both load-bearing: the first states the return shape and source, the second front-loads the two failure modes before the agent calls. Zero filler and no repetition of the schema or annotations.

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?

For a single-parameter lookup with no output schema, the description names the returned fields, the data source, and the conditions under which the lookup silently fails — which is what the agent most needs. Nothing material is missing.

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 would be 3. The description adds value by tightening the semantics to a '6-digit Indian pincode', where the schema permits strings from 1 to 12 characters — that is a meaningful constraint the schema does not enforce. Minor deduction since no format example is given.

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?

Uses a specific verb and resource — 'Returns the state, district and post offices for a 6-digit Indian pincode' — and names its data source, so an agent knows exactly what it gets back. It is inherently distinct from siblings like state_info or india_holidays, though it never explicitly routes the agent away from them.

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?

No explicit when-to-use or when-not-to-use statement, and no alternative is named. Usage is only implied by the resource named (a pincode) and the failure condition disclosed. An agent must infer that this is the pincode-to-location tool.

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