Run Budget Guard
Server Details
Hard dollar, token, call and time caps shared by every sub-agent in one agent run.
- Status
- Healthy
- Uptime
- 100.0% over the last 24 hours
- Last Tested
- Transport
- Streamable HTTP · MCP 2025-11-25
- URL
- ChatGPT
- –
- Claude
- –
TDQS
Scored across 6 tools
Each tool maps to a distinct action in the budget lifecycle: open_budget creates, reserve pre-checks, record reconciles, budget_status introspects the run. The main overlap is reporting: budget_status, usage_and_upgrade, and weekly_report all surface spend, though at different scopes (current run, today/tier, 7-day), which keeps them separable.
Mixed conventions: budget_status and weekly_report are noun_noun, open_budget and usage_and_upgrade lean verb_noun/noun_verb, while record and reserve are bare verbs. All snake_case and readable, but no single predictable pattern across the set.
Six tools is well-scoped for a run-budget guard: setup, pre-check, reconcile, status, plus usage and reporting. Each one earns its place with no redundant filler.
The core lifecycle (open, reserve, record, inspect, report) is fully covered. Closing a run is only reachable via the close=true flag on budget_status rather than a dedicated operation, a minor gap that is workable.
Available Tools
6 toolsbudget_statusAInspect
See spend vs limits, remaining budget, whether the run is stopped and why, and the last 20 ledger events. Set close=true when the run finishes.
Inputs: handle (required), close.
open_budgetAInspect
Open a hard budget for one agent run before it starts: max dollars, tokens, calls and/or wall-clock seconds. Returns a handle. Give the handle to every sub-agent; they all draw from the same ledger, so one runaway loop or fork cannot exceed the run cap.
Inputs: mode, label, max_usd, max_calls, +3 more.
recordBInspect
After a call, report the actual usage minus what you reserved (positive if it cost more, negative to give back an overestimate). Keeps the ledger honest without blocking.
Inputs: handle (required), usd, note, tokens.
reserveAInspect
Call BEFORE each model call, tool call or sub-agent spawn with your estimate. Returns allowed=true and deducts it, or allowed=false with the limit that tripped. When allowed is false, stop, do not retry, and return your partial result to the user. Atomic, so parallel sub-agents cannot both slip under the cap.
Inputs: handle (required), usd, note, calls, +1 more.
usage_and_upgradeBInspect
Show today's usage for your key or IP and the $49/month All Access upgrade link (cloudforbots.com/offer). Free tier: 500 calls/day. Not metered.
Inputs: no named parameters.
weekly_reportAInspect
Draft a plain-English report of the last 7 days for your key (or IP): runs, spend, runs that went over their cap, and dollars spent after a cap would have stopped them. Read-only; sends nothing. Show it to your user.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Budget & cost control for AI agents — per-agent spend caps + rate limits before each call.
Hard daily caps on your AI agents’ API spend (OpenAI, Anthropic, Google, OpenRouter via proxy keys), plus phone approval before any other payment.
Everything your AI agents need to do their jobs, with a spending cap they can't go over.
Meter, cap, and block AI agent spend before the provider is charged.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceEnables agents to track real-time token spend and cost velocity, automatically throttle or freeze execution when budgets are exceeded, and enforce sandbox and safety guardrails.MIT
- AlicenseAqualityBmaintenanceEnables AI agents and their operators to track spending across x402/MPP/API-key rails, set budget caps that warn at 80% and reject over-cap entries, auto-price token usage, and pull spend reports and anomaly alerts — plus request and decide approvals and manage credentials. Also attaches an enforcing proxy so an over-budget provider call is refused before it is ever sent.18MIT
- AlicenseNot gradedqualityBmaintenanceEnables agents to monitor running loops, estimate token consumption and monetary cost, prune verbose thinking chains near limits, and route sub-tasks between fast/cheap models and deep reasoning engines. It provides budget-aware model routing and telemetry through MCP.7MIT
- AlicenseNot gradedqualityCmaintenanceManages token budgets for AI agents, enabling tracking and enforcement of usage limits with built-in EU AI Act compliance.90 PyPIMIT
Glama MCP Gateway
Add one secure layer between your agents and this server.