get_earnings
Calculate energy bought, sold, and self-consumed for a chosen day or time window, priced at Amber half-hourly rates when linked. Use coverage to identify partial estimates.
Instructions
Energy bought, sold and self-consumed for a day (YYYY-MM-DD, 'today' or 'yesterday'), priced at the actual
Amber half-hourly prices when Amber is linked. Optional HH:MM window for part of the day. An estimate from
vendor power samples, not the bill; read coverage and say so when it is partial.
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": {
"site_id": "<site_id>"
},
"name": "get_earnings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ||
| site_id | Yes | ||
| window_end | No | ||
| window_start | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||