verify_reply_safety
Verify a draft AI customer support reply against authoritative order, customer, and policy facts before sending to block hallucinations, PII leaks, invalid codes, and unsafe refund claims.
Instructions
Pre-send deterministic safety and hallucination verifier for a draft AI customer support response. Runs completely offline without an API key, validating every email address, order ID, promo code, monetary figure, refund commitment, template placeholder, and punctuation rule against authoritative groundTruth records. Returns JSON with safe (boolean), riskLevel ('pass' | 'review' | 'block'), violationCount, violations[], and verifiedClaims[].
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": {
"candidateReply": "<candidateReply>"
},
"name": "verify_reply_safety"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| groundTruth | No | Authoritative customer, order, catalog, discount, and policy facts used to verify every claim in candidateReply. | |
| strictStyle | No | When true, flag em dashes and en dashes in candidateReply as low-severity style violations. | |
| candidateReply | Yes | Draft customer-facing AI response text to verify prior to delivery. |