Shared rate limit
rate_limitShared token bucket so several agents can split one quota (for example an external API's). take(tokens, default 1) returns granted true with remaining, or granted false with retry_after_ms. Never blocks.
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": {
"action": "<action>"
},
"name": "rate_limit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| action | Yes | ||
| tokens | No | ||
| capacity | No | ||
| ttl_seconds | No | ||
| refill_per_second | No |