Skip to main content
Glama

GridHub Electricity Market Data

Historical time series

get_history
Read-onlyIdempotent

Time series for one metric in one zone over a start/end window (Unix seconds). Rows are returned oldest-first and the 'limit' truncates from the OLDEST end, so a small limit over a wide window returns old data, not recent data — for 'the latest N points' set start close to now, or use get_latest / get_zone_brief for current values. Default window is the last 24h (last ~400 days for capacity, which is annual). Max window 31 days per call (400 for capacity); paginate with start/end for more. Metrics: price (wholesale, local currency per MWh), demand (MW), generation (per fuel, 'fuel' field set; % or MW depending on zone; GB and US-CAISO only), carbon-intensity (gCO2/kWh; GB only), interchange (net imports, MW), capacity (installed MW per fuel; European zones only). Authentication: send 'Authorization: Bearer ' on the MCP connection (free key, 500 requests/day, instant email signup at https://grid-hub.app/developers), or pay per call with x402 (USDC on Base) via the X-PAYMENT header. With no credentials, data tools run in free sample mode: real, current data but truncated (history capped at 50 rows; brief returns one context block). Sample results are clearly marked.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endNoWindow end, Unix seconds. Default: now.
zoneYesZone id. US ISOs: US-CAISO, US-ERCOT, US-PJM, US-MISO, US-NYISO, US-ISONE, US-SPP. Europe: DE-LU, FR, ES, IT-NO, NL, BE, PL, SE-3, NO-2, DK-1, AT, CH. Great Britain: GB. Australia (NEM): AU-NSW, AU-QLD, AU-VIC, AU-SA, AU-TAS. Call list_zones for names, sources, currencies and licences.
limitNoMax rows (default 200, max 1000 via MCP; sample mode caps at 50).
startNoWindow start, Unix seconds. Default: end minus 24h.
metricYesWhich series to fetch.
api_keyNoOptional GridHub API key (ghk_...). Prefer sending it as an 'Authorization: Bearer <key>' HTTP header on the MCP connection; use this argument only if your client cannot set headers. Without a key the tool runs in free sample mode (truncated output).

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare readOnlyHint and idempotentHint, and the description adds substantial behavioral detail beyond them: the oldest-first ordering with limit truncating from the OLDEST end (a genuine gotcha), per-call window limits, metric-specific availability caveats (generation limited to GB and US-CAISO, carbon-intensity to GB, capacity to European zones), and free sample-mode truncation at 50 rows.

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 long but every sentence earns its place. The core purpose and the critical truncation gotcha are front-loaded, followed by defaults, limits, metric semantics, and auth — each piece is operational for making a correct call. There is no filler or repetition of the schema's plain parameter text.

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 carries the burden of explaining return behavior, and it covers ordering, truncation, units, per-zone availability, pagination, and authentication modes thoroughly. The only gap is that it never specifies the exact output row shape/field names (beyond mentioning the 'fuel' field), so an agent cannot fully predict the response structure before calling.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, which sets a baseline of 3, but the description adds meaning the schema lacks: the 'limit' parameter's non-obvious oldest-end truncation behavior, default window semantics per metric type, and per-zone metric availability that the enum alone does not convey. The metric field is enriched with units (local currency per MWh, MW, gCO2/kWh) and the 'fuel' sub-field 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?

The first sentence states a specific verb and resource: 'Time series for one metric in one zone over a start/end window (Unix seconds).' It goes well beyond the name/title, and explicitly differentiates itself from siblings by pointing to get_latest / get_zone_brief for current values, so an agent can distinguish it from the alternatives.

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 gives explicit when-to-use guidance: 'for the latest N points set start close to now, or use get_latest / get_zone_brief for current values.' It also documents pagination strategy ('paginate with start/end for more'), default and maximum windows per metric, and which metrics apply to which zones, leaving little to inference.

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.

TDQS

A4.6/5.0
Disambiguation4/5

Most tools have clearly distinct purposes: history, latest values, map-wide snapshot, health status, zone brief, and zone metadata. There is some overlap among get_latest, get_zone_brief, and get_map_snapshot for current values, but the descriptions explicitly differentiate raw latest values, interpreted briefs, and multi-zone comparisons.

Naming Consistency5/5

The tool names follow a consistent get_ noun pattern, with list_zones as a natural metadata-list exception. The naming is predictable and makes the resource each tool targets immediately clear.

Tool Count5/5

Six tools is well-scoped for a read-only electricity market data server. Each tool covers a distinct retrieval need—metadata, history, latest values, snapshots, summaries, and health—without redundant or filler tools.

Completeness5/5

The surface covers the full read-only workflow: discovering zones, fetching raw history, getting current values, comparing zones, obtaining interpretation-ready context, and checking data freshness. No obvious missing operations exist for the stated domain.