throttle_check
Check if a request is allowed under shared API rate limits, returning remaining quota and optimal retry_after_ms when throttled to coordinate multi-agent swarms.
Instructions
[Cost: $0.0002 USDC on Base & Solana] Sliding-window rate limiter and token bucket manager for multi-agent swarms.
Coordinates shared API limits across autonomous agents (e.g. GitHub, CoinGecko, OpenAI RPM). Returns allowed status, remaining quota, and optimal jittered backoff delay (retry_after_ms) when throttled.
Args:
key: Namespace identifier for the shared API or resource (e.g. 'github_api', 'coingecko_free').
limit: Maximum requests allowed in the sliding window (default: 10).
window_seconds: Duration of the sliding window in seconds (default: 60).
cost: Number of tokens to acquire (default: 1).
payment_signature: Optional x402 Base/Solana USDC payment transaction hash or authorized key.
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": {
"key": "<key>"
},
"name": "throttle_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| cost | No | ||
| limit | No | ||
| window_seconds | No | ||
| payment_signature | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |