Skip to main content
Glama

ONS UK GDP Monthly Estimate

ons.stats.gdp
Read-onlyIdempotent

Retrieve UK Gross Domestic Product (GDP) monthly estimates from the ONS. Seasonally adjusted index (2016=100) covering total economy (A--T) or specific sectors: Agriculture (A), Manufacturing (C), Construction (F), Index of Services (G-T), Production Industries (B--E). Monthly data from 1997. Default returns total monthly GDP. Use the sector parameter for industry-level breakdowns. Source: ONS dataset gdp-to-four-decimal-places, OGL v3.0.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoNumber of most recent months to return (1–300, default 60). Data is monthly (seasonally adjusted index, 2016=100).
sectorNoONS SIC sector code for GDP breakdown. Default "A--T" (Total monthly GDP). Examples: "A" (Agriculture), "C" (Manufacturing), "F" (Construction), "G-and-I" (Distribution, Hotels & Restaurants), "B--E" (Production Industries). See ONS API for full list.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoPresent only when the call failed. Includes error code, message, request_id, and any provider-specific extras.
resultNoTool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds useful behavioral context: the index is seasonally adjusted with base year 2016, data starts from 1997, and default returns total monthly GDP. This goes beyond annotations and clarifies what the tool returns.

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 description is concise and front-loaded with the purpose, then provides key data details and parameter guidance. It includes the source and license, which is useful but could be considered slightly verbose. Overall, every sentence contributes to the tool's understanding.

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 description covers purpose, data specifics, default behavior, parameter usage, and data source/licensing. Given that an output schema exists, the absence of return format details is acceptable. The tool is simple with two parameters, and the description fully equips an agent to call it 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?

Schema description coverage is 100%, so the baseline is 3. The description adds value by reinforcing the default sector behavior ('Default returns total monthly GDP') and instructing to use the sector parameter for breakdowns. It also provides sector examples that align with the schema, making parameter usage clearer.

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 tool retrieves UK GDP monthly estimates from the ONS, with specific mention of seasonal adjustment, index base year, and sector coverage. This distinguishes it from other GDP tools (e.g., ABS, BEA, Eurostat) by explicitly naming the UK and the ONS source.

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

Usage Guidelines4/5

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

The description implies usage for UK GDP data and provides clear guidance on using the sector parameter for breakdowns. It does not explicitly mention alternatives or when not to use, but the scope is clear enough for an agent to select it appropriately among siblings.

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.