Skip to main content
Glama

token_bucket_hierarchical_rate_limiter

Enforce agent, tenant, and global request rate limits with token buckets, smoothing bursts to prevent overload.

Instructions

Hierarchical token bucket limiter enforcing multi-tier agent, tenant, and global request rate limits with smooth burst smoothing. (0.030 USDC on Base L2)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
payloadYesInput parameters or JSON string payload for the tool execution
paymentSignatureNoBase L2 USDC micropayment signature or transaction hash for x402 settlement

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions 'smooth burst smoothing' and the fee, but does not state critical behavior for a limiter: what happens when a limit is exceeded (block, queue, error), how the multi-tier hierarchy is enforced, or how the payment signature is applied per call. The phrase 'smooth burst smoothing' is redundant and adds little concrete behavioral information.

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?

A single sentence that front-loads the core purpose before the pricing note. The fee note '(0.030 USDC on Base L2)' is concise and arguably useful for cost-aware agents. Minor redundancy ('smooth burst smoothing') but no waste overall.

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?

For a fee-charging rate limiter with no annotations and no output schema, the description is incomplete. It omits the return format, the exact rejection/error behavior when rate limits are hit, and how to construct or attach the paymentSignature. An agent cannot reliably determine the success/failure contract or the settlement flow from this text.

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?

Schema coverage is 100%, so the baseline is 3 and the description need not elaborate parameters. However, the schema's own descriptions are generic ('Input parameters or JSON string payload') and the paymentSignature description explains settlement mechanism but not how the signature is produced or validated. The tool description adds no parameter information beyond the schema, so it stays at baseline.

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 mechanism ('Hierarchical token bucket limiter') and its scope ('multi-tier agent, tenant, and global request rate limits'). It is distinguishable from the near-identical sibling throttle_rate_limiter_token by the 'hierarchical...multi-tier' qualifier, though the verb is only implicit ('enforcing') rather than explicit.

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?

No guidance on when to use this tool versus alternatives. A direct sibling, throttle_rate_limiter_token, exists and likely overlaps, yet the description provides no differentiation or selection criteria such as 'use for multi-tenant tiered limits, use throttle_rate_limiter_token for simple token throttles.' No when-not-to-use conditions are given.

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

Deploy Server

Other Tools