aegis_check_output
Check a model response before it reaches the user: runs deterministic guards for ungrounded confidence, PII or secret leaks, unverified identity grants and high-stakes advice, returning ALLOW, FLAG or BLOCK with findings.
Instructions
Check a model response before it reaches the user. Runs the deterministic output guard across S1 (ungrounded confidence), S2a (unverified identity grants), S3-output (PII/secrets in the response), S4 (literal-trap heuristic, experimental), S5 (high-stakes advice without deferral), S6 (crisis/vulnerability signals), and S7 (institutional amplification). Returns ALLOW, FLAG, or BLOCK with findings, evidence, and remediation. Pass user_prompt when available: S2a, S4 and S6 need it for their main checks. By default it runs offline pattern detectors only (sub-millisecond, no network). If the operator has configured a model judge (AEGIS_JUDGE_PROVIDER plus their own API key), the reply is also reviewed by that model, which catches far more failures; the result's mode and judge fields say what ran.
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": {
"response": "<response>"
},
"name": "aegis_check_output"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| judge | No | Set false to skip the model judge for this call (patterns only). Honored only when the operator sets AEGIS_JUDGE_ALLOW_OPT_OUT=1; ignored when no judge is configured. | |
| locale | No | Locale for crisis resources, e.g. US, GB, CA, AU, NZ, IN. Falls back to AEGIS_LOCALE, then US. Unknown locales get US resources plus the international directory (findahelpline.com). | |
| context | No | Optional free-form context (e.g. channel). Never stored with response text. | |
| response | Yes | The model response to check. | |
| user_prompt | No | The user message the response answers. Enables the prompt-dependent S2a, S4 and S6 checks. | |
| block_checks | No | Check ids to escalate from FLAG to BLOCK for this call, e.g. ["S5_DOSAGE_WITHOUT_DEFERRAL"]. Lets a deployer raise severity per check without changing the defaults. |