Skip to main content
Glama
uk-ons-economic-statistics-mcp

uk-ons-economic-statistics-mcp

Get UK ONS dataset metadata by ID

get_uk_ons_dataset_details
Read-onlyIdempotent

Fetch official metadata for a UK ONS dataset ID, including release schedules, national statistic flags, contacts, and version links. Use it to verify dataset provenance before analysis.

Instructions

Fetch official metadata, release schedule, national statistic flag, contacts, and latest version link for a UK ONS dataset ID.

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": "get_uk_ons_dataset_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataset_idNoUK ONS dataset slug (default "cpih01"; examples: "gdp-to-four-decimal-places", "regional-gdp-by-year").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world behavior, so the safety profile is covered. The description contributes the content of the response (release schedule, national statistic flag, contacts, version link), which is genuinely useful given no output schema, but it says nothing about failure behavior for an invalid dataset slug, upstream ONS availability, or latency.

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 front-loaded sentence with zero filler; the resource and the returned fields are packed efficiently without redundant restatement of the title.

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 one-parameter, read-only lookup with no output schema, enumerating the returned fields goes a long way toward telling the agent what it gets back. The remaining gap is error/miss handling for an unresolvable dataset ID, which matters for an open-world fetch from an external statistical service.

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% and the single parameter's description already carries the default ('cpih01') and concrete slug examples. The description only restates that the input is a UK ONS dataset ID, adding no format, casing, or resolution rules beyond the schema.

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 ('Fetch') and resource (UK ONS dataset metadata by ID) and enumerates the payload an agent will receive: release schedule, national statistic flag, contacts, latest version link. It is clearly distinct from a listing tool, but it never names or contrasts itself with the closer sibling get_uk_cpih_inflation_metadata, so the agent must infer which ID-based metadata tool to pick.

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?

There is no when-to-use guidance, no exclusions, and no mention of alternatives such as get_dataset_editions_and_versions for version-level data or get_uk_cpih_inflation_metadata for CPIH-specific metadata. The only routing cue is the implicit 'dataset ID' scoping in the parameter.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.