Get a usage summary
get_analytics_summaryGet a usage summary
Returns usage over a date window, aggregated into one row per usage type, with the quantity consumed and the revenue, cost and margin that go with it. Rows appear only for usage types that were actually recorded in the window, so an idle account gets an empty metrics array rather than rows of zeroes. Both bounds are optional: without them the window is the last 30 days ending now. The window that was actually applied is echoed in period.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_analytics_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End of the window, inclusive. Defaults to now. A date-time value is accepted as well as a date. | |
| from | No | Start of the window, inclusive. Defaults to 30 days before now. A date-time value is accepted as well as a date. |