MCP Server for budget rate limiting and throttling agent tool invocations with token bucket rate limiting and session cost budget capping
Single tool with critical definition gaps. Tool name 'check_rate_and_budget' violates verb_noun convention (should be 'check_budget_and_rate' or split into separate tools). Input schema present but parameter 'cost_usd' lacks description entirely, violates pattern:tool-description requirement that every parameter must have a description. Tool description is only 56 characters, below the 10-1024 baseline, and lacks WHEN/WHY context. No output schema documented, LLMs cannot plan downstream calls. No error handling guidance. Tool combines two concerns (rate limiting + budget checking) in one name, signaling composition issues.
Verify rate quota and session budget availability.
Parameter 'cost_usd' has no description in schema. LLMs cannot infer what this parameter controls or its valid range/format.
No output schema documented. Tool returns JSON with 'allowed', 'message', 'metrics' fields, but LLMs have no formal specification of return structure, types, or field meanings.
Tool name 'check_rate_and_budget' contains 'and', signaling multiple responsibilities. Should split into 'check_rate_limit' and 'check_budget' or rename to single concern.
Tool description (56 chars) is below baseline minimum (10-1024 chars) and lacks WHEN/WHY context. Does not explain when to call this vs other tools or what prerequisites exist.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 36 | 2026-07-28+ | v2 |
No error handling guidance. Tool returns 'BUDGET_EXCEEDED' and 'RATE_LIMIT_EXCEEDED' messages but does not guide LLM on recovery actions (retry, wait, ask user, etc.).