ratelimit
ratelimitShared rate limiter: take N units from a named bucket (limit per window, atomic) and learn whether you may go ahead, how many remain and when it resets. Keeps a fleet of agents under an API's quota or your own budget. cost=0 just peeks. Costs $0.002 USDC per call (x402).
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": {
"name": "<name>"
},
"name": "ratelimit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | No | Units to take, default 1 | |
| name | Yes | ||
| limit | No | ||
| space | No | Optional shared namespace (any secret string): agents using the same space share it. Default: your paying wallet. | |
| window_seconds | No |