tokenbar
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
TokenBar reports the user's AI usage limits (Claude Code, Codex, Copilot, Windsurf…). Before starting a long or expensive task, call check_budget for the provider you run on; if ok is false, tell the user and suggest waiting until the reset.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_usageA | Current usage of AI subscription limits (Claude Code, Codex, GitHub Copilot, Windsurf and any AI the user added to TokenBar). For each AI: windows (usually 5h and 7d) with usedNow (% used right now, 0 after the reset time), resetsAt (unix s) and resetsInSeconds. |
| time_until_resetA | Seconds (and human text) until a provider's usage window resets. Default window: the first (5h). |
| check_budgetA | Checks if a provider is below a usage threshold, so you can decide whether to start a long or expensive task now or postpone it until the limit resets. Without |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 3 tools
The tools map to mostly distinct intents: broad usage snapshot, reset timing, and threshold-based advice. However, get_usage already returns resetsInSeconds and usedNow, so time_until_reset and check_budget partly overlap with it for simple queries.
Two of the three tools follow a clear verb_noun snake_case pattern (get_usage, check_budget). time_until_reset is a noun phrase rather than verb-led, a minor deviation, but the set remains predictable and readable.
Three tools are well suited to a focused read-only usage-monitoring server. The small surface keeps scope tight and avoids overwhelming the agent.
Core workflows are covered: seeing current usage, checking reset timing, and deciding whether to start expensive work. Minor gaps remain around explicit provider discovery/configuration and historical usage, though get_usage likely lets agents discover configured providers.