talonic_compliance_add_rule
Add a rule written by a person to a framework.
How an agent uses it
- Use it when: a rule is missing.
- Not for: changing a rule (talonic_compliance_update_rule).
- Arguments:
document_id,text, optional obligation, section, applies_to, condition, threshold, testable. Needs apps:compliance:write.
Availability
Listed when the Compliance app is enabled for your workspace and your role can use it. Being listed only means the tool is visible: Talonic checks your role again on every call.
Behaviour and cost
- Not read-only. It can add to or change workspace data.
Parameters
| Parameter | Type | Description |
|---|---|---|
| document_id * | string | — |
| text * | string | — |
| obligation | string | How binding the rule is. |
| section | string | — |
| applies_to | string | — |
| condition | string | — |
| threshold | string | — |
| testable | boolean | — |
Example
Tool input
{
"document_id": "<document_id>",
"text": "<text>"
}Errors
A failed call comes back as a tool error with the HTTP status and a message that says what to change. Troubleshooting lists the common ones.