get_cost_history
Query long-term energy-cost history from an AiSEG2 SD card, returning cost points in Japanese yen. Filter by day, month, or year granularity.
Instructions
Read-only. Query the AiSEG2's long-term energy-cost history from the SD-card export (JPY).
Requires an SD card inserted in the AiSEG2. Shares the same cached download as get_history.
Returns long-form cost points ({timestamp, metric, value}) with values in Japanese yen.
Args:
granularity: "day" takes start/end as YYYY-MM-DD; "month" as YYYY-MM; "year" as YYYY.
start: Range start (inclusive), formatted per the granularity.
end: Range end (inclusive), formatted per the granularity.
limit: Maximum number of series points to return (default 200).
offset: Number of points to skip (for pagination).
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": {
"granularity": "<granularity>",
"start": "<start>",
"end": "<end>"
},
"name": "get_cost_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | ||
| limit | No | ||
| start | Yes | ||
| offset | No | ||
| granularity | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | Yes | ||
| series | Yes | ||
| has_more | Yes | ||
| total_rows | Yes | ||
| granularity | Yes | ||
| next_offset | No |