Skip to main content
Glama

Gridstatus Query

gridstatus_query
Read-onlyIdempotent

Query a grid dataset's time-series over a time window. Pass a dataset_id from gridstatus_datasets. Common ids: caiso_lmp_real_time_5_min, ercot_load, pjm_fuel_mix. Example: gridstatus_query({ dataset_id: "caiso_lmp_real_time_5_min", start_time: "2026-07-01T00:00Z", end_time: "2026-07-01T06:00Z", limit: 100, _apiKey: "your-key" })

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax rows to return (default 50, capped at 200).
_apiKeyYesGridStatus API key
end_timeNoOptional ISO end time (rows before this).
dataset_idYesDataset id to query, e.g. "caiso_lmp_real_time_5_min", "ercot_load", "pjm_fuel_mix". Discover ids via gridstatus_datasets.
start_timeNoOptional ISO start time (rows on/after this). E.g. "2026-07-01T00:00Z" or "2026-07-01T00:00-05:00".
resample_frequencyNoOptional resampling bucket, e.g. "5 minutes", "1 hour", "1 day". Reduces row volume for long windows.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already cover the read-only, idempotent, non-destructive profile, and the description's query language is consistent with them. It adds time-window scope and API-key use, but does not describe return format, pagination, or rate limits; with annotations present this is adequate but not especially rich.

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 purpose is front-loaded, and every subsequent sentence adds useful context: where to get a dataset_id, common IDs, and a complete example call. There is no filler or wasted effort.

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?

The schema, examples, and annotations together give an agent enough to call the tool correctly. The only notable omission is a statement about the returned data shape, which matters more here because there is no output schema to supply that information.

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 schema already explains all six parameters. The description reinforces dataset_id sourcing and includes a concrete call example, but that information is already present in the schema property descriptions and examples, so it adds little beyond the baseline.

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 description opens with a specific verb and resource: it queries a grid dataset's time-series over a time window. That scope differentiates it from dataset-discovery and latest-value siblings, and the example reinforces exactly what the tool is for.

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?

It provides practical selection context by linking dataset_id to gridstatus_datasets and illustrating a realistic time-window call. It does not explicitly name alternatives such as gridstatus_latest, so it stops short of full when-to-use versus when-not-to-use guidance.

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.