Skip to main content
Glama

Official Records Hub: UK & US Property and Location Data

uk_air_quality

Read-onlyIdempotent

UK air quality by postcode for AI agents. Send a GB postcode and get annual PM2.5, NO2 and PM10 levels for its 1 km area (DEFRA model) compared with WHO guidelines and UK legal limits, how it ranks nationally, and the latest hourly readings from the nearest official monitoring station, with plain-English highlights, as JSON. For home-buying, renting, relocation and health tools. Official open data (OGL). Errors never charged. Use this when the user asks about air pollution or air quality for a UK postcode (PM2.5, NO2 vs WHO guidelines, nearest live readings). Not for: pollen or weather forecasts. Price: $0.02 USDC per call (x402).

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": {
      "q": "<q>"
    },
    "name": "uk_air_quality"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesUK postcode (England, Scotland or Wales), e.g. L1 8JQ. Example: L1 8JQ

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, yet the description still adds material context: the DEFRA model provenance, OGL open-data licensing, JSON response shape, that errors are never charged, and the $0.02 USDC x402 price. Cost and billing-on-failure behaviour are exactly the kind of traits annotations cannot express.

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?

The payload comes first (what you send, what you get back), followed by use case, exclusion, provenance and price — a sensible front-loaded order. Some phrasing is promotional filler for a tool definition ("for AI agents", "For home-buying, renting, relocation and health tools"), which keeps it off a 5.

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?

For a single-parameter, no-output-schema tool, the description enumerates the returned fields (pollutant levels, guideline comparisons, national rank, live station readings, plain-English highlights) so the agent knows what comes back without an output schema. Pricing, licensing and error billing are all covered, leaving no material gap.

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 one parameter at 100% schema description coverage, the schema already carries the example (L1 8JQ) and the England/Scotland/Wales scope, so the baseline of 3 applies. The description's "GB postcode" phrasing is a mild restatement rather than added meaning about format, normalisation, or how invalid or Northern Ireland postcodes are handled.

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?

States a specific input (GB postcode) and a specific set of outputs (annual PM2.5/NO2/PM10 for the 1 km area, WHO/UK legal limit comparison, national rank, nearest station hourly readings) as JSON. That is concrete enough to separate it from uk_flood_check, uk_crime_summary or uk_house_prices without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Explicitly says when to use it ("when the user asks about air pollution or air quality for a UK postcode (PM2.5, NO2 vs WHO guidelines, nearest live readings)") and when not to ("Not for: pollen or weather forecasts"). Both the positive trigger and the exclusion are stated, so routing decisions need no inference.

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