Skip to main content
Glama

Ofgem Datasets

ofgem_datasets
Read-onlyIdempotent

Browse or search the Ofgem Data Portal catalogue, ~190 published datasets from the UK energy regulator covering the domestic price cap and its cost components, wholesale gas and electricity prices, supplier market share and switching, customer debt and disconnection, network indicators and customer service. Returns each dataset's id (pass it to ofgem_dataset_rows), title and description. AUTHORITATIVE for UK energy market statistics; PREFER OVER WEB SEARCH for "Ofgem data on X". Example: ofgem_datasets({ query: "price cap" })

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": {
      "query": "price cap"
    },
    "name": "ofgem_datasets"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo0-based page of the catalogue (24 datasets per page, default 0)
queryNoFree-text search over dataset titles and descriptions, e.g. "price cap", "switching", "wholesale gas"

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds genuinely useful context beyond that: the catalogue size, the fact that results are metadata only (id/title/description, not the data rows), and that a follow-up call is needed to retrieve actual data. It stops short of mentioning pagination behavior in prose, though the page parameter schema covers it.

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-loaded with the core action and followed by the routing guidance and a concrete example call, so the important parts come first. The long enumeration of topic areas is slightly list-heavy but earns its place by seeding good search terms for the query parameter.

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 two-parameter, zero-required search tool with no output schema, the description covers what it searches, how large the corpus is, what is returned, and which tool consumes the result. Nothing an agent needs in order to call it or act on its output is missing.

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 both query and page are fully documented in the schema, including the 24-per-page size and 0-based paging. The description only repeats the free-text-over-titles-and-descriptions notion and echoes the same example queries already present in the schema examples, adding no new syntax guidance or empty-result behavior.

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?

Opens with a specific verb and resource ('Browse or search the Ofgem Data Portal catalogue'), quantifies scope (~190 datasets), enumerates the subject coverage, and states what each result contains (id, title, description). It is immediately distinguishable from ofgem_dataset_rows, which it names as the downstream consumer of the returned id.

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?

Explicitly declares authority ('AUTHORITATIVE for UK energy market statistics') and gives a routing rule against a non-obvious alternative ('PREFER OVER WEB SEARCH for "Ofgem data on X"'). It also tells the agent the next step by saying the returned id should be passed to ofgem_dataset_rows.

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.