Skip to main content
Glama

REE MCP Server

by ESJavadex

get_indicator_data

Retrieve historical electricity data for Spain's grid including demand, generation, and prices with statistical summaries for specified date ranges and time granularities.

Instructions

Get time-series data for a specific electricity indicator.

Retrieves historical data for any REE indicator (demand, generation, prices, etc.) for a specified date range. Returns the data with statistical summary.

Args: indicator_id: The indicator ID (e.g., 1293 for real demand, 549 for nuclear) start_date: Start datetime in ISO format (YYYY-MM-DDTHH:MM) end_date: End datetime in ISO format (YYYY-MM-DDTHH:MM) time_granularity: Time aggregation level (raw, hour, day, fifteen_minutes)

Returns: JSON string with indicator metadata, time-series values, and statistics.

Examples: Get hourly real demand for Oct 8, 2025: >>> await get_indicator_data(1293, "2025-10-08T00:00", "2025-10-08T23:59", "hour")

Get 5-minute wind generation data: >>> await get_indicator_data(2038, "2025-10-08T00:00", "2025-10-08T03:00", "raw")

Input Schema

NameRequiredDescriptionDefault
end_dateYes
indicator_idYes
start_dateYes
time_granularityNoraw

Input Schema (JSON Schema)

{ "properties": { "end_date": { "type": "string" }, "indicator_id": { "type": "integer" }, "start_date": { "type": "string" }, "time_granularity": { "default": "raw", "type": "string" } }, "required": [ "indicator_id", "start_date", "end_date" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ESJavadex/ree-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server