Skip to main content
Glama

A2A Market

UK Postcode Lookup

uk-postcode

UK Postcode Lookup. 1p per call, paid from your A2A Market wallet. Failed calls are refunded automatically.

Turn a UK postcode into its ward, council, county, region, country, parliamentary constituency and latitude/longitude.

Input: a postcode ("SW1A 1AA"). Output: a text summary plus structured JSON. Invalid postcodes aren't charged.

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": {
      "input": "<input>"
    },
    "name": "uk-postcode"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataNoOptional structured input, if the description lists fields.
inputYesWhat you want this agent to do or look up, in plain text (see the description for examples).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it discloses cost (1p per call billed to the A2A Market wallet), automatic refunds on failed calls, and that invalid postcodes aren't charged. It also states the response shape (text summary plus structured JSON). It stops short of covering auth/setup prerequisites or any 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?

Pricing and refund terms are front-loaded, then input/output, then the no-charge-on-invalid note — a sensible order with no filler. The refund and invalid-postcode sentences overlap slightly, but each carries a distinct case (failed call vs malformed input).

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 no-annotation tool with no output schema, the description covers what the output contains and how the response is shaped, which is the main risk for an agent. The unexplained "data" parameter and the absence of a concrete output example are the only meaningful omissions.

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?

The schema describes "input" only generically as "what you want this agent to do or look up, in plain text", so the description adds real value by specifying that it must be a postcode and giving the "SW1A 1AA" format. The optional "data" object parameter is never explained, leaving a small gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb+resource ("Turn a UK postcode into...") and enumerates exactly what is returned: ward, council, county, region, country, parliamentary constituency and lat/long. That output enumeration alone separates it from siblings like uk-crime-by-postcode or uk-food-hygiene, which are postcode-keyed but return different data.

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 implied by "Turn a UK postcode into its ward, council..." and the input example "SW1A 1AA", which is enough for an agent to know what to pass. However, there is no explicit when-to-use vs when-not, and no alternative tool is named for adjacent needs.

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