Check Text Against Governance Policy
rai_policy_checkEvaluate text or model responses against a governance policy to check blocked topics, keywords, length, PII, and required disclaimers, returning pass/fail per rule with fixes.
Instructions
Evaluate text or a model response against a governance policy. Checks for: prohibited topics, required disclaimers, output length limits, language restrictions, and custom keyword blocklist. Returns pass/fail per policy rule with remediation guidance.
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>",
"policy": "<policy>"
},
"name": "rai_policy_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to evaluate against policy | |
| policy | Yes | Governance policy configuration |