talonic_data_product_set_sequence_counter
Set a counter's high-water mark; the next ID issued is value + 1. USE WHEN the user wants numbering to continue from a given value. IDs already issued stay. Lowering the value can issue an ID again that was issued before, so confirm with the user. Needs products:write and an Admin of the workspace (else 403 insufficient_role).
How an agent uses it
- Not for: reading the counters (talonic_data_product_sequence_counters).
Availability
Listed when your role can see the workspace's data products; changes need products:write on a connector session. Being listed only means the tool is visible: Talonic checks your role again on every call.
Behaviour and cost
- Changes workspace data and can't be undone. Call it only when the user asked.
Parameters
| Parameter | Type | Description |
|---|---|---|
| data_product_id * | string | The data product id (from GET /v1/data-products) |
| target_field * | string | The field the IDs are written to |
| prefix * | string | The counter's prefix |
| value * | integer | The new high-water mark Range: 0 to 9007199254740991. |
| scope * | "product" | "cross" | `cross` for a counter shared across products |
Example
Tool input
{
"data_product_id": "<data_product_id>",
"target_field": "<target_field>",
"prefix": "<prefix>",
"value": 0,
"scope": "product"
}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.