talonic_data_policy_check
Check a data policy's latest version and prepare it to run; answers {id, status: "compiled", rule_count}. A rule that does not check out is a 400 naming it. USE WHEN the user edited a policy and wants to know it is valid. Needs specs:write and an Admin of the workspace (else 403 insufficient_role).
How an agent uses it
- Not for: seeing what the policy does to a record (talonic_data_policy_preview).
Availability
Listed when your role can see the workspace's data policies. 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 |
|---|---|---|
| data_policy_id * | string | The data policy id (from GET /v1/data-policies) |
Example
Tool input
{
"data_policy_id": "<data_policy_id>"
}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.