Skip to main content
Glama

postcode_lookup

Read-onlyIdempotent

Postcode to coordinates, region, local authority, ward, constituency, LSOA/MSOA and ONS codes. (cost: 1 credit)

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "postcode_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
postcodeNostring, required

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, open-world and non-destructive, so the safety profile is covered. The description adds a genuinely useful non-structured detail — the 1-credit cost — but says nothing about return shape, error behavior, or batch/rate limits.

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?

One front-loaded sentence listing outputs, with the cost note appended compactly. Nothing is wasted, though the output list could be grouped more readably.

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?

There is no output schema, so the enumeration of returned fields is doing real work and is the most valuable part of the description. For a single-parameter read-only lookup this is close to complete; only input format and failure behavior are 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?

With a single parameter at 100% schema description coverage, the schema already carries the parameter documentation, so baseline 3 applies. The description never mentions the expected postcode format (full vs outward code, spacing, case), so it adds no meaning beyond 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?

The description names a specific resource (postcode) and enumerates what it resolves to: coordinates, region, local authority, ward, constituency, LSOA/MSOA and ONS codes. That is far more specific than the title. It does not explicitly distinguish itself from the related 'geocode' sibling, which keeps it from 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 Guidelines2/5

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

There is no statement of when to use this rather than the 'geocode' or 'ons_search' siblings, and no mention of prerequisites or what happens on an invalid/partial postcode. Usage is only inferable from the name and output list.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources