Skip to main content
Glama

Uk Ons Get Observations

uk_ons_get_observations
Read-onlyIdempotent

Fetch observations from a dataset/edition/version. Pass dimension filters as dimensions map ({"geography": "K02000001", "time": "2023"}). Use * for "all values" within a dimension.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "edition": "time-series",
      "version": "1",
      "dataset_id": "cpih01",
      "dimensions": {
        "time": "2023",
        "geography": "K02000001"
      }
    },
    "name": "uk_ons_get_observations"
  }
}

Input Schema

NameRequiredDescriptionDefault
editionYesEdition label
versionYesVersion
dataset_idYesONS dataset ID
dimensionsYesDimension code → value (or "*" for all). Example: {"geography":"K02000001","time":"2023"}.

Output Schema

NameRequiredDescriptionDefault
notesYesUsage notes
editionYesEdition label
versionYesVersion
dataset_idYesDataset ID
observationsYesObservation rows
unit_of_measureYesUnit of measurement
total_observationsYesTotal number of observations

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, open-world, non-destructive behavior, so the safety profile is covered. The description adds the dimension-filtering model and the '*' wildcard semantics, but says nothing about result size, pagination, or what happens when a dimension filter matches nothing.

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?

Three short sentences, front-loaded with the action and resource, with no filler. The example is arguably redundant with the schema examples but stays compact.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema and rich annotations carry the return-value and safety burden, and the description covers the identifying triple plus filtering. Still missing are practical call details such as expected result volume or behavior on empty matches, which matter for an open-world data fetch.

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% and the schema already documents every parameter, including the dimensions map with the '*' wildcard. The description's example largely repeats the schema's own example rather than adding new meaning, so baseline 3 applies.

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 observations') and resource, and names the required dataset/edition/version hierarchy, which distinguishes it from the listing tools. It does not differentiate itself from siblings like uk_ons_get_dataset or get_version, so it stops short of a 5.

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?

The description describes how to call it but never when to use it versus uk_ons_get_dataset or get_version, nor any precondition such as needing to resolve edition/version first. Usage is only implied by the call shape.

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.