account_ledger
Retrieve billing and usage charges for sub-accounts within a date range, with options to query specific account statuses like archived, canceled, or paused.
Instructions
Get billing/ledger data across sub-accounts.
Shows usage charges for the given date range.
Only queries active sub-accounts by default. Pass account_status="archived", "canceled", "paused", or "all" to query other sub-accounts.
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": "account_ledger"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_date | No | ||
| start_date | No | ||
| account_ids | No | ||
| account_status | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |