get_credits_usage
Read-only: the user's credits for the current period as { used, available, total, periodStartDate, periodEndDate, oneTimeCreditsHoldback }. periodStartDate and periodEndDate bound the usage window: the billing period, or the last 30 days ending today when there is no active subscription. periodEndDate is not a renewal date: for when credits renew, or whether the plan ends instead, read the subscription (get_user_info: renewalDate, isPlannedForCancellation). For an account owner used is the period's grants minus the current balance, so credits left from earlier grants lower it; for exact spend use get_credits_spend_by_product with since = periodStartDate. For a team member used is their spend against their credit cap, and total is the cap (the owner's grants for the period when they have no cap). For the spendable balance right now use get_credits_balance; for what the credits were spent on use get_credits_spend_by_product. Takes no arguments.
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_credits_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||