set_order_substitution
Toggles substitution allowance for specified order lines by fetching current state and updating only those that differ. Use to enable or disable substitutions on selected lines.
Instructions
Set whether substitution is allowed for specific order lines. Uses a toggle endpoint: fetches current state and only toggles lines that differ. WARNING: Not idempotent due to toggle semantics. Do NOT retry on timeout — check current state first.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"token": "<token>",
"lineIds": "<lineIds>",
"substitution": "<substitution>"
},
"name": "set_order_substitution"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | Order token | |
| lineIds | Yes | IDs of lines to update | |
| substitution | Yes | Desired substitution state (true = allow, false = disallow) |