Skip to main content
Glama

ONS Datasets List

ons.datasets.list
Read-onlyIdempotent

List and search all 337+ datasets published by the UK Office for National Statistics (ONS) via the beta CMD API. Returns dataset IDs, titles, descriptions, last-updated timestamps, release frequencies, and national statistic flags. Use the keyword parameter to filter by topic (e.g. "gdp", "inflation", "population", "unemployment", "earnings"). Use dataset IDs with the other ons.* tools or the ONS Cantabular API. Source: ONS CMD API v1, Open Government Licence v3.0.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of datasets to return (1–50, default 20).
offsetNoPagination offset — number of datasets to skip (default 0).
keywordNoOptional keyword to filter datasets by title, description, or tags (e.g. "gdp", "inflation", "population", "unemployment").

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.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is fully covered. The description adds value beyond annotations by disclosing the API version (beta CMD API), the data source, the licensing (Open Government Licence v3.0), and the exact fields returned. It doesn't mention pagination behavior beyond the offset parameter, but the schema already documents that. A 4 is appropriate because the description enriches the behavioral context without contradicting annotations.

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 three sentences, each earning its place: the first states the core function and return fields, the second gives keyword usage examples, and the third routes to related tools and cites the source/license. It is front-loaded with the most important information and contains no filler.

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 read-only list/search tool with a full output schema, complete parameter documentation, and comprehensive annotations, the description covers everything an agent needs: what it returns, how to filter, how to use the results with other tools, and the data source. The output schema handles return-value details, so the description need not repeat them.

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 description coverage is 100%, so the schema already fully documents all three parameters (limit, offset, keyword) with types, ranges, defaults, and examples. The description adds the keyword usage guidance with topic examples, which is helpful but not essential. Baseline 3 is correct because the schema does the heavy lifting and the description provides marginal additional value.

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 states a specific verb ('List and search'), a precise resource ('all 337+ datasets published by the UK Office for National Statistics'), and the API source ('beta CMD API'). It also enumerates the returned fields (dataset IDs, titles, descriptions, timestamps, frequencies, national statistic flags), which clearly distinguishes it from sibling tools like ons.stats.gdp or ons.stats.cpih that fetch specific statistical series rather than the dataset catalog.

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?

The description explicitly tells the agent when to use this tool: to list/search the ONS dataset catalog, and how to filter by topic using the keyword parameter with concrete examples. It also directs the agent to use dataset IDs with other ons.* tools or the ONS Cantabular API, providing clear routing guidance. This is more explicit than most sibling definitions.

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.