Get action usage
get_action_usageThis billing period's action usage (for the plan's Stripe billing line items use get_subscription): actions used against the plan allowance plus the extra actions top-ups and grants add (limit, left; extra-granted is the part of extra stub granted free, and only the rest was bought, so never call a grant purchased), when the allowance resets, the prepaid balance in cents and actions, whether the plan allowance is spent or the business is out, usage by kind of work, days (this period's counted actions by SAST day, split into askstub, workflows and other; days with none are left out), and the hours saved. When sponsored is true the business is not metered, so limit, left and out? are not a real cap; when trial is true it has no paid plan yet. billedby names who bills the business: "stripe", or a partner such as "shopify" that takes the payment itself, so stub asks it for no card. trialends is the day its trial ends while it is on one, the partner's own date for a partner trial. plan-label is the plan by the name the customer sees; legacy true means a grandfathered plan whose allowance differs from the pricing page. period-topups lists this period's top-ups oldest first: at (SAST date and time), actions (what it adds at today's rate, rounded down, so they can sum to less than extra), credit-cents (what it added to the balance, not the price paid) and kind (purchase, or a grant from stub, which counts in extra but not as bought). A top-up bought after a low-balance warning does not make that warning wrong: compare the top-up's at with the time of the warning before you say a count was wrong.
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_action_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||