detect_contradictions
Analyze policy documents (and optional behavioral decision logs) to detect contradictions, hidden rules, and gaps between declared policy and observed behavior. Stateless — no artifact is created and nothing is persisted. Returns contradictions of three types: rule_collision (two rules that apply to the same case with different decisions where the policy does not settle it soundly, each with that case and what the policy would do), ghost_term (an undefined standard such as "reasonable" in a rule's own text), and layer_divergence (a policy rule and a rule of practice that one case meets with different decisions); with behavioral logs, policy_gaps measured from the decisions.
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": {
"documents": "<documents>"
},
"name": "detect_contradictions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | NOMOS API key (nmk_live_...). | |
| documents | Yes | Policy documents to analyze for contradictions. | |
| behavioral_logs | No | Optional historical decision records. Enables layer_divergence detection — surfaces behavioral patterns that deviate from written policy. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| summary | No | Plain-language summary of findings | |
| hidden_rules | No | Rules inferred from behavior not in written policy | |
| contradictions | No | List of detected contradictions | |
| total_contradictions | No | Total contradictions found |