calculate_energy
Calculate solar, wind, or Belgian total-load energy in MWh for an offset-aware interval up to 24h by fetching and summing quarter-hour MW values; coverage is reported without gap filling.
Instructions
Calculate solar/wind generation energy or total-load energy in MWh by fetching its own power source and summing MW times 0.25h. Use for energy, rather than power in MW. Offset-aware start/end, max 24h; coverage reported, no gap filling. No raw-record input.
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": {
"series": "<series>",
"start": "<start>",
"end": "<end>"
},
"name": "calculate_energy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | Exclusive interval end, ISO 8601 with Z or an explicit offset. UTC quarter-hour aligned, after start and no more than 24 elapsed hours later. Split longer ranges, including 25-hour Belgian DST days. | |
| start | Yes | Inclusive interval start, ISO 8601 with Z or an explicit offset (for example 2026-11-17T10:00:00Z). Must align to a UTC quarter-hour; start < end; maximum 24 elapsed hours. | |
| series | Yes | Source to fetch and integrate: solar PV generation, wind generation or Belgian total load. Fetches data itself; do not resend records. Not suitable for instantaneous imbalance or prices. | |
| wind_type | No | total (default): Belgian onshore plus offshore; onshore: four regional/grid components; offshore: federal offshore component. Applies only to wind; leave total for other series. Incomplete component sets yield null, not partial totals. | total |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | Sum non-null interval-average MW times fixed interval hours; no gap filling. | |
| quality | Yes | ||
| metadata | Yes | ||
| energy_mwh | Yes | Observed energy in MWh over available intervals; null if no usable power values. No gap filling or full-period estimate. | |
| covered_hours | Yes | Elapsed hours with usable quarter-hour power measurements. |