Skip to main content
Glama

Shared rate limit

rate_limit
Destructive

Shared token bucket so several agents can split one quota (for example an external API's). take(tokens, default 1) returns granted true with remaining, or granted false with retry_after_ms. Never blocks.

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": {
      "action": "<action>"
    },
    "name": "rate_limit"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo
actionYes
tokensNo
capacityNo
ttl_secondsNo
refill_per_secondNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

C2.9/5.0
Behavior3/5

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

The description adds genuine behavior beyond the annotations: the bucket is shared across agents, take is non-blocking ('Never blocks'), and the failure path returns granted=false with retry_after_ms. However, annotations flag destructiveHint=true and the description never says which action is destructive or what delete removes, so the most consequential behavior for the agent is left undisclosed.

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?

Two tight sentences with the resource model front-loaded and the return contract immediately after; no filler or redundant phrasing. The brevity is disciplined rather than sloppy, even though more content was needed.

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

Completeness2/5

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

A five-action, six-parameter mutation tool with no output schema and only minimal annotations needs considerably more description than a single take() call. An agent cannot tell from this text how to create a bucket (capacity, refill_per_second, ttl_seconds), what 'touch' or 'delete' do, or what the destructive action removes.

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

Parameters2/5

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

Schema description coverage is 0% across six parameters, so the description carries the full burden, yet it only explains 'tokens' (default 1) and the output fields. The meaning and constraints of id, action, capacity, ttl_seconds and refill_per_second — arguably the core configuration of a token bucket — are never addressed.

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

Purpose4/5

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

The description names a specific resource model: a shared token bucket that lets several agents split one quota, with a concrete example (an external API's quota). That is much more informative than a restatement of the name, though it never mentions the create/read/touch/delete actions the tool actually exposes and does not distinguish the tool from coordination siblings such as semaphore or lease.

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

Usage Guidelines2/5

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

There is a partial usage hint for one action ('take(tokens, default 1)'), but no guidance on when an agent should create a bucket, read it, touch it, or delete it, and no statement of when to prefer this tool over a semaphore or lease. The reader must infer the whole multi-action workflow from the enum.

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