detect_context_breaches
Scan traces for token usage exceeding context window thresholds to catch overflows that cause truncation or degraded performance.
Instructions
Scan for traces where token usage exceeds a context window threshold.
Default: 256K tokens. Set check_per_generation=true to check if any SINGLE generation exceeds the limit (not just trace aggregate). Catches context window overflow causing degraded performance or truncation.
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": "detect_context_breaches"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | ||
| project | No | ||
| end_date | No | ||
| threshold | No | ||
| start_date | No | ||
| time_range | No | ||
| check_per_generation | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||