Day earnings
get_earningsCalculate bought, sold, and self-consumed energy on a site for a day or time window at Amber half-hourly prices when linked. Results are vendor-sample estimates, not bills; check coverage if partial.
Instructions
Energy bought, sold and self-consumed on one day, or in part of it, priced at the actual Amber half-hourly prices when Amber is linked. 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 | YYYY-MM-DD, 'today' or 'yesterday'. Omitted = today. | |
| site_id | Yes | Site id from list_sites: vendor:station_id, e.g. sungrow:1445844. | |
| window_end | No | HH:MM site local: where that part of the day ends. | |
| window_start | No | HH:MM site local. With window_end: account for that part of the day only. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||