Get Usage Statistics
sirv_get_usageCheck the workspace's credit balance and credit usage before running AI tools or when low-credit errors appear. Returns balance, plan tier, credits used, total operations, and top consuming operations.
Instructions
Show the workspace's credit balance and how it used credits.
Use it before a large run of AI tools, or when a tool reports too few credits. It takes no inputs.
Read-only. The balance is the one that AI tools charge, and reading it needs permission to view credits. When it cannot be read, the tool returns an error, never a balance of zero.
Returns:
credits: the credit balance.
tier: the plan, left out when this sign-in cannot read it.
creditsUsed and totalOperations: credits and operations used so far.
topOperations: the operations that used the most credits.
topUpUrl: the Studio page where the workspace buys more credits.
Credits: free.
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": "sirv_get_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||