get_billing
Retrieve billing and usage data for your account, including credit consumption, API call history, and Stripe portal access. Filter by date range, event type, or tags to analyze costs.
Instructions
Get billing and usage events for your account. Returns credit consumption, API call history, and a link to the Stripe customer portal. Filter by date range, event type, or tags.
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": {
"account_id": "<account_id>"
},
"name": "get_billing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | Yes | Your account UUID | |
| start_date | No | Filter events from this ISO 8601 date (inclusive) | |
| end_date | No | Filter events until this ISO 8601 date (inclusive) | |
| type | No | Filter by event type | |
| tags | No | Comma-separated tags to filter by |