Skip to main content
Glama

util_rate_limit_plan

Read-only

API rate limit planner — Turn one or more API rate limits into a safe request plan: binding limit, sustained rate, minimum spacing between calls, concurrency needed (Little's law), token-bucket refill and capacity, per-worker split, and how long a job of N requests takes. Params: limit (required) either a number with window= seconds or 1m/1h/1d, or a list like 60/1m;1000/1h;10000/1d; requests total jobs; latency avg ms (default 200); concurrency max in flight; workers (default 1); safety fraction of each limit to use (default 0.9). Offline. Price: $0.002 USDC (Base, via x402).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "limit": "<limit>"
    },
    "name": "util_rate_limit_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitYes60/1m;1000/1h

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=true, destructiveHint=false, openWorldHint=true), the description discloses the paid x402 pricing model, the offline computation, the default values applied when optional inputs are omitted, and the algorithms used (Little's law, token bucket). This is meaningful behavior the structured fields do not convey; it stops short of describing invalid-input handling or the return shape.

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

Conciseness3/5

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

Purpose is correctly front-loaded in the first clause, but the 'Params:' section is a single run-on semicolon chain that is slow to parse and mixes real schema fields with phantom ones. The information is largely useful, but the packing hurts scanability.

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

Completeness4/5

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

With no output schema, the description usefully enumerates what the planner returns, and it covers cost and defaults, which is enough for an agent to call it correctly. The one real defect is the parameter list that does not match the schema, leaving ambiguity about which optional inputs actually exist.

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

Parameters3/5

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

The description significantly enriches the single schema parameter, explaining that limit accepts a bare number with window=seconds, or 1m/1h/1d suffixes, or a semicolon-separated list like 60/1m;1000/1h;10000/1d. But it then lists requests, latency, concurrency, workers and safety as params even though the input schema declares only limit, which will lead an agent to attempt arguments the tool does not accept.

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 ('Turn one or more API rate limits into a safe request plan') and then enumerates exactly what the plan contains: binding limit, sustained rate, minimum spacing, concurrency via Little's law, token-bucket refill/capacity, per-worker split, and total job duration. That level of output specificity makes it unmistakable against siblings like util_backoff or util_subnet_plan.

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

Usage Guidelines3/5

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

Usage is implied by the input description (give it a limit, optionally a job size) and it is disclosed that the tool is offline and costs $0.002 USDC via x402. However there is no explicit when-to-use/when-not guidance and no routing toward or away from any alternative tool; an agent must infer the call conditions.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources