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.
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 |