Skip to main content
Glama
MIRAI Intelligence & Research MCP

MIRAI Intelligence & Research MCP

by Tarant336

Rate limit design

rate_limit_design
Read-onlyIdempotent

Design rate limits for APIs and services by selecting token-bucket, leaky-bucket, sliding-window, or concurrency-cap policies, with parameter guidance and optional nginx configuration.

Instructions

Produce rate-limiting designs (token bucket, leaky bucket, sliding window, concurrency caps; per-IP/per-account/per-route) with algorithm rationale and POLICY-level parameter guidance, plus integration notes and an optional sample nginx limit_req/limit_conn configuration.

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": {
      "scenario": "<scenario>"
    },
    "name": "rate_limit_design"
  }
}

Input Schema

NameRequiredDescriptionDefault
scenarioYesScenario/service to protect.
dimensionsNoRate-limiting dimensions of interest.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description usefully adds what is actually returned: algorithm rationale, POLICY-level (not implementation-level) parameter guidance, integration notes, and an optional nginx limit_req/limit_conn sample. That 'policy-level' qualifier sets an expectation boundary the annotations cannot express. It stops short of stating length/depth or variance of the output.

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 front-loaded sentence leading with the verb, then deliverables, then optional bonus output. It is dense with parenthetical lists but every clause carries information; the nested semicolon structure is slightly harder to scan than shorter bullets would be.

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?

For a two-parameter, non-destructive generative tool with full schema coverage and no output schema, the description covers what is produced and at what level of abstraction. Missing only explicit input expectations (what a 'scenario' should contain) and what the tool deliberately will not do, such as full production config generation.

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 coverage is 100%, so a baseline of 3 applies, but the description earns extra credit by illustrating the value space of the enum-less 'dimensions' parameter (per-IP/per-account/per-route, algorithm families) which the schema only labels generically as 'Rate-limiting dimensions of interest.' The 'scenario' parameter's role is only indirectly conveyed.

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?

A specific verb and resource ('Produce rate-limiting designs') followed by a concrete inventory of algorithms (token bucket, leaky bucket, sliding window, concurrency caps) and scoping dimensions (per-IP/per-account/per-route). It is unmistakably distinct from analysis tools like ddos_detection_design by content, but the description never explicitly contrasts itself with any sibling.

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 deliverable: an agent can infer this is the tool for generating a design rather than analyzing traffic. However, there is no explicit 'use when' trigger, no prerequisites, and no stated boundary such as when to prefer ddos_detection_design or a pure advisory search.

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