Skip to main content
Glama

Ons Timeseries

ons_timeseries
Read-onlyIdempotent

Fetch a single UK ONS time series by its www.ons.gov.uk URI (the classic timeseries API, distinct from the filterable datasets above). Returns the full series JSON (description + observations). e.g. uri "/economy/grossdomesticproductgdp/timeseries/abmi/pn2". (Named ons_timeseries — get_series is used by many other economic-data packs.)

Input Schema

NameRequiredDescriptionDefault
uriYesONS timeseries URI, e.g. "/economy/grossdomesticproductgdp/timeseries/abmi/pn2".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "uri": "/economy/grossdomesticproductgdp/timeseries/abmi/pn2"
      -  }
      -]New value: +[
      +  {
      +    "uri": "/economy/grossdomesticproductgdp/timeseries/abmi/pn2"
      +  },
      +  {
      +    "uri": "/employmentandlabourmarket/peoplenotinwork/unemployment/timeseries/mgsx/lms"
      +  }
      +]
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "uri": "/economy/grossdomesticproductgdp/timeseries/abmi/pn2"
      +  }
      +]
  3. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive behavior. The description adds useful return-value context by saying it returns the full series JSON including description and observations, which annotations do not cover. It omits auth requirements, rate limits, and error behavior.

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?

Front-loads the core action and scope in the first clause, then adds return format and an example. The parenthetical naming note about get_series is slightly meta but earns its place by preventing tool-name confusion. Overall compact and mostly waste-free.

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?

With no output schema, the description helpfully states what is returned (full series JSON with description and observations). The single required parameter is fully documented in the schema. The main remaining gap is that it does not explain how to obtain or construct valid ONS URIs beyond examples, but it is otherwise complete for a read-only fetch tool.

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 schema itself already provides an example URI. The description reinforces that the parameter is a www.ons.gov.uk timeseries URI path, but adds little beyond the schema and its example. Baseline 3 is appropriate.

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 verb and resource: fetch a single UK ONS time series by URI. It explicitly distinguishes itself from the filterable dataset tools and notes the classic timeseries API, so an agent can tell it apart from siblings like get_dataset or get_observations without opening schemas.

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?

Gives clear usage context: use this classic timeseries API for a single series by URI, as distinct from the filterable datasets above. It does not explicitly name the alternative tools or state when not to use it, which keeps it from a 5.

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.