Skip to main content
Glama

get_ocei_history_and_live_grids

Retrieve OCEI-Spot snapshots, 60-minute settlement TWAP, covenant availability, and live ERCOT, PJM, and EPEX electricity hub prices for trend comparison, covenant auditing, and price lookup.

Instructions

Retrieves empirical Cloudflare D1 time-series snapshots of OCEI-Spot, true 60-minute settlement TWAP, rolling 30-day covenant availability, and all 3 live wholesale spot electricity hubs (ERCOT Texas, PJM Virginia, EPEX Europe). Use this tool for historical trend comparison, SLA/insurance covenant auditing, or live electricity price lookup.

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

Input Schema

NameRequiredDescriptionDefault
hoursNoLookback window in hours (1 to 720 hours / 30 days).
limitNoMaximum number of D1 snapshot rows to return.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.3.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden. 'Retrieves' implies a read-only operation and the data families are spelled out, but there is no disclosure of permissions, rate limits, ordering of returned rows, or how the multiple series are combined in the response.

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?

Two sentences, no filler, with the data scope front-loaded and usage guidance following. It is dense with domain jargon (OCEI-Spot, TWAP) but every clause carries information.

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 two-optional-parameter read tool with no output schema, the description covers what data is returned and when to call it. The main residual gap is return structure and row ordering, which is not covered anywhere else in the definition.

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%, so both parameters (hours, limit) are already documented in the schema. The description adds context that the lookback relates to a rolling 30-day covenant window, but gives no extra meaning about how 'limit' interacts with the multi-series payload.

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 ('Retrieves') and enumerates the exact resources: D1 time-series snapshots of OCEI-Spot, 60-minute settlement TWAP, 30-day covenant availability, and three named wholesale hubs. The content is clearly distinct from the solver-style siblings (arbitrage/dispatch/regime), though no sibling is named explicitly to draw the contrast.

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 explicit when-to-use guidance: 'historical trend comparison, SLA/insurance covenant auditing, or live electricity price lookup.' It does not state when not to use it or name the solver siblings as the alternative for optimization-style questions, so the routing guidance is clear but incomplete.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.