Get consumption for a date window
get_my_usageGet consumption for a date window
Sums the metered consumption recorded for this account over a date window, broken down into voice minutes and chat sessions. With no query parameters the window runs from midnight on the first day of the current month in server local time up to the moment of the request, which makes the bare call a current-month total. Both bounds are inclusive. The two counters are returned as 0 when nothing was metered in the window rather than being omitted, and the echoed period tells you exactly which window was measured. This reports usage only; for what is left to spend, call GET /users/me/limits.
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_my_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End of the window, inclusive. Defaults to the current server time. | |
| from | No | Start of the window, inclusive. Defaults to the first day of the current month. Parsed as a date; an unparseable value yields an empty result rather than an error. |