evaluate_circuit_breaker
Evaluate AI agent run logs (JSON array or JSONL string) against hard USD/token caps and sliding-window ping-pong loop thresholds, returning deterministic exit codes (0/2/3) and per-agent spend attribution.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "evaluate_circuit_breaker"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxUsd | No | Hard USD cap (default: 5.0). | |
| rawLog | No | Raw JSONL or JSON array log string (alternative to records). | |
| records | No | Array of agent turn records. | |
| maxTokens | No | Optional hard total token cap. | |
| maxPingPong | No | Unproductive wake turns limit in window (default: 4). | |
| pingPongWindowSec | No | Sliding window length in seconds (default: 300). |