Grok weekly usage budget
get_budgetReturn current weekly SuperGrok/Grok Build pool usage and reset time so agents can check remaining quota before starting expensive work.
Instructions
Return current Grok Build / SuperGrok weekly pool usage and reset time (same figure as the TUI /usage). Top-level used_percent/remaining_percent are the overall pool (config.creditUsagePercent); products lists every per-product row (e.g. GrokBuild) so you can pick the relevant one. period_end is the reset time. Data comes from an UNOFFICIAL, undocumented endpoint; null fields plus warning mean partial data. Call it once before expensive work; do not poll in a loop.
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_budget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||