Skip to main content
Glama

UK Data: Weather and places

geocode

Read-onlyIdempotent

Great Britain place name to coordinates, county, district and region (OS Open Names). (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": "geocode"
  }
}

Input Schema

NameRequiredDescriptionDefault
countNonumber 1-20
queryNostring, required

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, open-world), so the description's job is to add other traits – and it does, disclosing the 1-credit cost and the shape of the result set (coordinates plus administrative hierarchy) in the absence of an output schema. It does not mention matching behavior (fuzzy/partial names, ambiguity handling).

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?

One compact sentence front-loads the input-to-output mapping, then names the data source and cost. Every clause contributes; nothing is padded.

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 simple two-parameter lookup with full annotation coverage and no output schema, the description supplies the geographic scope, returned fields, and credit cost – enough to invoke it confidently. The remaining gap is query-format and ambiguity behavior.

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 coverage is 100%, with 'query' marked required and 'count' bounded 1-20 in the schema itself. The description adds no input-format detail such as whether partial names, commas, or non-GB names are accepted, so it sits at the baseline.

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?

States a specific verb+resource ('Great Britain place name to coordinates') and names the returned fields (county, district, region) plus the underlying source (OS Open Names). This clearly separates it from siblings like postcode_lookup or wikidata_lookup, though it never explicitly names those alternatives.

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?

The description implies the tool accepts a place name rather than a postcode or an ID, which is mild scoping, but it offers no when-to-use guidance, no statement of what happens for ambiguous or non-GB names, and no pointer to any alternative geocoding sibling.

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