Rate limit design
rate_limit_designDesign 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
| Name | Required | Description | Default |
|---|---|---|---|
| scenario | Yes | Scenario/service to protect. | |
| dimensions | No | Rate-limiting dimensions of interest. |