get_generation_mix
Retrieve electricity generation breakdown by source (nuclear, wind, solar, etc.) for a specific date and hour from Spain's grid operator data.
Instructions
Get the electricity generation mix at a specific time.
Returns the power generation breakdown by source (nuclear, wind, solar, etc.) for a specific hour.
Args: date: Date in YYYY-MM-DD format hour: Hour in HH format (00-23, default: 12)
Returns: JSON string with generation mix by source.
Examples: Get generation mix at noon on Oct 8: >>> await get_generation_mix("2025-10-08", "12")
Get overnight generation mix:
>>> await get_generation_mix("2025-10-08", "02")
Input Schema
Name | Required | Description | Default |
---|---|---|---|
date | Yes | ||
hour | No | 12 |
Input Schema (JSON Schema)
{
"properties": {
"date": {
"type": "string"
},
"hour": {
"default": "12",
"type": "string"
}
},
"required": [
"date"
],
"type": "object"
}