What the work came to
get_usageThis month's paid work in a workspace, by project: pages, changes and apps that passed, what was paid, what is still to be charged and what a plan covered, the plans in force and any refunds. With it, where the workspace's AI use stands (aiUse, as Settings shows it under AI & usage): the share of today's and this month's AI allowance used, when each starts again, what raises a used-up one, and each site's share of this month's AI use, as percentages; and the workspace's own AI spending limits (spendingLimits): each limit, what its day or month has spent so far, how close it is, what happens at it and when it starts again. With it, what the workspace owes that only its own payment settles (owed: a card payment its bank took back after a dispute, its amount and date, why the last try to pay was declined, and payUrl, the Billing & plan page where the owner pays it; while anything is owed, new work waits and live sites keep running). Owners and admins see amounts, limits and what is owed; other members see the work only. Paying or changing a plan happens in the CodeGene app (never here: give the person payUrl); set_ai_spending_limit sets or removes a limit.
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_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | No | Only this project (list_projects gives ids). | |
| workspace_id | No | Workspace id from whoami; omit when there is one. |