get_generation_mix
Retrieve the electricity generation mix by source (nuclear, wind, solar, etc.) for a specific date and hour. Provide the date and optionally the hour to get the breakdown of power generation from Spain's grid.
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")Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"date": "<date>"
},
"name": "get_generation_mix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ||
| hour | No | 12 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |