Skip to main content

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

ParameterTypeDescription
document_id *string—
text *string—
obligationstringHow binding the rule is.
sectionstring—
applies_tostring—
conditionstring—
thresholdstring—
testableboolean—

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.