generate_rate_limiting
Generate rate limiting middleware with Redis token bucket or sliding window
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": {
"algorithm": "<algorithm>",
"requestsPerWindow": "<requestsPerWindow>",
"windowSeconds": "<windowSeconds>",
"runtime": "<runtime>"
},
"name": "generate_rate_limiting"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runtime | Yes | ||
| algorithm | Yes | ||
| windowSeconds | Yes | ||
| requestsPerWindow | Yes |