Skip to main content
Glama

UK Data for Agents

ons_search

Read-onlyIdempotent

Search ONS datasets, bulletins and time series. (cost: 1 credit)

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

Input Schema

NameRequiredDescriptionDefault
limitNonumber 1-50
queryNostring, required

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare read-only, open-world, idempotent, and non-destructive behavior. The description adds useful cost information ('cost: 1 credit'), but does not disclose auth requirements, rate limits, pagination, or result format.

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 two short sentences with no wasted wording. The core purpose is front-loaded, and the cost note is appropriately brief.

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 simple two-parameter search tool with rich annotations and full schema coverage, the description is largely complete: it states scope and cost. It could be improved by distinguishing `ons_timeseries` and briefly indicating what results are returned, but these are minor gaps.

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 baseline is 3. The description adds modest domain meaning by indicating that `query` searches ONS datasets, bulletins, and time series, but it does not explain query syntax, matching behavior, or how `limit` affects results beyond the schema's 'number 1-50'.

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?

The description states a specific verb and resource: searching ONS datasets, bulletins, and time series. It is clear what the tool does, but it does not differentiate itself from the sibling `ons_timeseries`, which appears to cover the same time-series domain.

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 explicit guidance on when to use this tool versus alternatives such as `ons_timeseries`, nor any exclusions. The implied usage is searching ONS content, but an agent is left to infer the boundary with related sibling tools.

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.

Resources