Skip to main content
Glama

UK Postcodes Crime Risk MCP

Validate UK postcode

validate_uk_postcode
Read-onlyIdempotent

Check whether a UK postcode string is valid against the live Postcodes.io registry.

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

Input Schema

NameRequiredDescriptionDefault
postcodeYesUK postcode to validate (e.g. "SW1A 1AA").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, openWorldHint=true and destructiveHint=false, so the safety and idempotency profile is fully covered elsewhere. The description's one contribution is naming the live Postcodes.io registry as the source, disclosing the external, current-state dependency. It says nothing about failure modes (network errors vs invalid postcode), rate limits, or normalization behavior.

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 sentence with no filler, front-loading the check action and immediately naming the validation source. Nothing could be removed without losing information.

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 one-parameter tool with full schema coverage and complete annotations, the definition is workable, but there is no output schema and the description never states what is returned (a boolean, a formatted postcode, or error detail). An agent must call it to discover the response shape, which is a real gap for a tool without structured output.

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% and there is a single optional-less string parameter with length bounds and an example already in the schema. The description adds no formatting, casing, or whitespace-normalization guidance beyond what the schema provides, so the baseline 3 applies.

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 gives a specific verb and resource: "Check whether a UK postcode string is valid" against a named registry. The word "valid" implicitly separates it from the sibling lookup_uk_postcode, which presumably returns address details, but the distinction is never made explicit.

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 only implied by the verb "validate" — an agent can infer this tool answers a yes/no validity question rather than performing a lookup. There is no explicit statement of when to prefer this over lookup_uk_postcode, nor any mention of exclusions or prerequisites.

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.