check_output
Analyze text output from Claude API responses to detect token waste, alert levels, and suppress noise. Identifies token-heavy or ignored output early.
Instructions
Analyze a text output from a Claude API response. Returns an alert level (info/warning/error/alert), token count, whether the output should be suppressed, and detected waste patterns. Use after every API response to catch token-heavy or ignored output early.
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": {
"text": "<text>"
},
"name": "check_output"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text content to analyze. | |
| type | No | Optional hint about the output type. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | ||
| tokens | No | ||
| alertLevel | No | ||
| outputType | No | ||
| shouldSuppress | No | ||
| detectedPatterns | No |