Skip to main content
Glama

Grok weekly usage budget

get_budget
Read-onlyIdempotent

Return 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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond the readOnly/idempotent annotations by disclosing that the data comes from an UNOFFICIAL, undocumented endpoint, that null fields plus `warning` indicate partial data, and that it mirrors the TUI /usage figure. That is exactly the fragility an agent needs to interpret degraded results.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Dense but front-loaded, with the primary purpose in the first clause and operational caveats last. A few parentheticals (e.g. config.creditUsagePercent) add detail that is useful but slightly heavy for a no-arg tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, and the description compensates by naming the key return fields and their meaning, plus the partial-data signal. Combined with the safety annotations, an agent has everything needed to call and interpret it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Zero parameters, so the baseline is 4. The description instead documents return-field semantics (top-level used_percent/remaining_percent as the overall pool, `products` for per-product rows, period_end as reset time), adding useful meaning despite there being no inputs.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Return current Grok Build / SuperGrok weekly pool usage and reset time') and pins the scope to the weekly pool, which cleanly separates it from the sibling get_monthly_credits. An agent knows exactly what data this yields without opening anything else.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear when-to-use ('Call it once before expensive work') and an explicit when-not ('do not poll in a loop'). It does not explicitly route to the sibling get_monthly_credits when monthly figures are wanted, so it stops just short of full alternative-naming.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools