Skip to main content

talonic_data_policy_preview

Preview a data policy's latest version on one record set without writing anything: one sample record as the policy would leave it and how many records the set holds ({ok, sample, total_records}). A rule that fails on the record answers ok: false with the error. A 504 means the preview took over 5 seconds: retry. USE WHEN the user wants to see the effect before publishing. Needs specs:write and an Admin of the workspace (else 403 insufficient_role).

How an agent uses it

  • Not for: applying it to a whole run (talonic_data_policy_run).

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

  • Reads only. It never changes workspace data.
  • Cost: no credits.

Parameters

ParameterTypeDescription
data_policy_id *stringThe data policy id (from GET /v1/data-policies)
record_set_id *stringThe record set to preview on
sample_record_idstringThe record to show; the first one when absent

Example

Tool input
{
  "data_policy_id": "<data_policy_id>",
  "record_set_id": "<record_set_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.