Skip to main content
Glama

Planear límite de solicitudes

rate-limit-plan
Read-onlyIdempotent

Calcula, para un límite de N solicitudes por ventana, el espaciado mínimo, la duración total mínima y la espera del próximo llamado. Cuándo: un flujo de agente necesita un resultado exacto y repetible para un paso auxiliar (tokens, costos, reintentos, fragmentos, ranking, limpieza de JSON). No para: calcular los tiempos de espera entre reintentos (backoff-schedule). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.

EN: Computes, for a limit of N requests per window and a number of calls to make, the minimum spacing between calls, the minimum total duration and a token-bucket wait time for the next call. When: an agent loop needs an exact, repeatable result for a bookkeeping step (tokens, costs, retries, chunking, ranking, JSON clean-up). [EN completo / full EN: inputSchema.description]

Input Schema

NameRequiredDescriptionDefault
burstNoBucket capacity (default = limit) (integer; optional; min 1; max 1000000000).
callsNoCalls you need to make (integer; optional; default 0; min 0; max 1000000000).
limitYesRequests allowed per window (integer; required; min 1; max 1000000000).
window_secondsYesWindow length in seconds (number; required; > 0; max 31536000).
tokens_availableNoTokens currently in bucket (number; optional; min 0).

Output Schema

NameRequiredDescriptionDefault
windows_neededNo
rate_per_secondNo
min_total_secondsNo
min_spacing_secondsNo
next_call_wait_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / limit / examples
      Added value: +[
      +  60
      +]
    • addedInput schema / properties / window_seconds / examples
      Added value: +[
      +  60
      +]
  2. Changed1 schema field changed
    • addedInput schema / description
      Added value: +"EN: Computes, for a limit of N requests per window and a number of calls to make, the minimum spacing between calls, the minimum total duration and a token-bucket wait time for the next call. When: an agent loop needs an exact, repeatable result for a bookkeeping step (tokens, costs, retries, chunking, ranking, JSON clean-up). Not for: computing retry delays for exponential, linear or constant backoff with a cap and optional jitter (backoff-schedule). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB."
  3. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint=false and destructiveHint=false, so the safety profile is covered. The description still adds genuinely new traits: deterministic output, no network, no stored state, and concrete operational limits (64 KB input, 1 s per call, 1 MB result). Only the "efectos secundarios: ninguno" sentence restates the annotations.

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?

Both the Spanish and English blocks carry identical content, so roughly half the text is duplicated rather than additive, and the trailing truncated pointer "[EN completo / full EN: inputSchema.description]" is awkward. The structure is front-loaded (purpose → when → when-not → side effects → limits), which is good, but the payload is longer than it needs to be.

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

Completeness5/5

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

An output schema exists, so return values need no explanation; with that removed, everything an agent needs is present: determinism guarantee, absence of side effects, sibling exclusion, and hard input/latency/size limits that affect how to call it safely.

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

Parameters4/5

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

Schema description coverage is 100%, so the baseline is 3. The description nevertheless adds conceptual meaning the schema lacks: it frames the output as token-bucket behaviour, which is what makes 'burst' and 'tokens_available' interpretable, and ties 'calls' to the total-duration result. It does not give explicit defaults, but the schema already does.

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?

Uses a specific verb plus enumerable outputs (espaciado mínimo, duración total mínima, espera token-bucket) for a clearly bounded resource: a rate limit of N requests per window. It also names the sibling it is not (backoff-schedule), so an agent can separate it from the retry-delay tool without opening either schema.

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

Usage Guidelines5/5

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

Explicitly states the trigger condition ("Cuando: un flujo de agente necesita un resultado exacto y repetible para un paso auxiliar") and an exclusion with a named alternative ("No para: calcular los tiempos de espera entre reintentos (backoff-schedule)"). When, when-not and alternative are all present.

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