Skip to main content
Glama

Random Postcode

random_postcode
Read-onlyIdempotent

Get a random valid UK postcode with full geographic details. Returns coordinates, region, district, ward, and constituency.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
latNoLatitude coordinate
lonNoLongitude coordinate
codesYesCodes mapping object
incodeYesIncode part of postcode
regionNoRegion name
countryYesCountry name
outcodeYesOutcode part of postcode
eastingsNoEastings grid reference
postcodeYesThe UK postcode
northingsNoNorthings grid reference
admin_wardNoAdministrative ward
admin_districtNoAdministrative district
parliamentary_constituencyNoParliamentary constituency

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "admin_district": {
      +      "description": "Administrative district",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "admin_ward": {
      +      "description": "Administrative ward",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "codes": {
      +      "description": "Codes mapping object",
      +      "type": "object"
      +    },
      +    "country": {
      +      "description": "Country name",
      +      "type": "string"
      +    },
      +    "eastings": {
      +      "description": "Eastings grid reference",
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "incode": {
      +      "description": "Incode part of postcode",
      +      "type": "string"
      +    },
      +    "lat": {
      +      "description": "Latitude coordinate",
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "lon": {
      +      "description": "Longitude coordinate",
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "northings": {
      +      "description": "Northings grid reference",
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "outcode": {
      +      "description": "Outcode part of postcode",
      +      "type": "string"
      +    },
      +    "parliamentary_constituency": {
      +      "description": "Parliamentary constituency",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "postcode": {
      +      "description": "The UK postcode",
      +      "type": "string"
      +    },
      +    "region": {
      +      "description": "Region name",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "postcode",
      +    "incode",
      +    "outcode",
      +    "country",
      +    "codes"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {}
      +]
  3. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already indicate read-only, idempotent, non-destructive behavior. The description adds useful context by specifying that the postcode is random and valid, and lists the returned geographic details, which goes beyond the annotations. It does not disclose additional limitations or caveats, but the positive annotation profile lowers the burden.

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?

The description is a single, front-loaded sentence that states the main purpose and then enumerates the returned data fields. There is no wasted wording, and the structure is easy to scan.

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?

The tool is simple with 0 params and has a strong annotation profile. The description covers the core function (random valid UK postcode) and the key outputs (coordinates, region, etc.), which, combined with the output schema, offers a complete picture for an agent to invoke the tool correctly.

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 tool has zero parameters, and schema coverage is trivially 100%. With 0 params, the baseline is 4, and the description appropriately omits parameter details since none exist. It adds nothing about parameters, but nothing is needed.

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 clearly states the action ('Get a random valid UK postcode') and highlights it returns full geographic details like coordinates, region, district, ward, and constituency. This distinguishes it from sibling tools such as lookup_postcode or validate_postcode, which serve different purposes.

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?

The description implies the tool is for obtaining a random postcode rather than a specific one, but it does not explicitly state when to use this tool versus alternatives, nor does it mention any exclusions. Given the sibling names, an agent could infer the use case, but the guidance is not explicit.

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.

TDQS

B3.4/5.0
Disambiguation2/5

Many tools have overlapping responsibilities: ask_pipeworx, ask_pipeworx_beta, ask_pipeworx_grounded all serve similar lookup purposes. entity_profile, compare_entities, and recent_changes all retrieve company data. Several Polymarket tools overlap in edge detection. The large number of tools with fuzzy boundaries makes it difficult for an agent to select the correct one.

Naming Consistency3/5

Tool names are a mix of conventions: some use verb_noun (lookup_postcode, validate_postcode, resolve_entity), others are verb_phrase (ask_pipeworx, deep_research, suggest_questions), and a few are compound (polymarket_arbitrage, scan_competitor_ai_presence). No uniform pattern, though the structure is readable.

Tool Count1/5

Despite being named 'postcodes', only 4 of 35 tools are directly about postcodes. The vast majority belong to a broad data platform (Pipeworx) with specialized tools for finance, betting, news, etc. The count is excessive for a focused service, and many tools are only useful for users of that platform, leading to clutter.

Completeness2/5

For a postcode server, the tools cover basic needs (lookup, nearest, random, validate). However, the server's actual scope is much larger; within that broader scope, there are notable gaps: no general text search, no direct access to raw SEC filings, and many tools depend on paid plans or external accounts. The coverage is uneven and incomplete for a unified data platform.