circuit_breaker_guard
Check upstream service health and record call outcomes to prevent cascading retry storms and IP bans across multi-agent swarms.
Instructions
[Cost: $0.0002 USDC on Base & Solana] Distributed swarm circuit breaker and fail-fast oracle.
Prevents cascading retry storms and IP bans across multi-agent swarms when upstreams fail.
Args:
service_key: Target upstream identifier (e.g. 'api.coingecko.com', 'base_rpc').
action: 'check' to test upstream state (CLOSED/OPEN), or 'record' to log call outcome.
success: Whether the upstream call succeeded (used when action='record').
status_code: HTTP/RPC status code received (default: 200).
error_message: Optional error reason if the call failed.
payment_signature: Optional x402 Base/Solana USDC transaction hash (defaults to developer mock key).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | check | |
| success | No | ||
| service_key | Yes | ||
| status_code | No | ||
| error_message | No | ||
| payment_signature | No |