Submit purchase order
submit_purchase_orderSubmit a draft purchase order. The first call without confirm_token does not submit. It returns confirmation_required, confirm_token, and a summary with order_id, line_count, supplier, total, and currency. Show that summary to the user and wait for an explicit yes, then call again with the same arguments plus confirm_token. A confirm boolean is ignored. If the order changes after the summary, the token is rejected. The token includes each line id and quantity. Two-step confirm_token: the first call without confirm_token only returns confirmation_required, a summary, and confirm_token. That call does not write, delete, cancel, or send. The second call must repeat the same arguments plus that confirm_token; that is the write. A confirm boolean is ignored. The token expires in 5 minutes and works once.
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": {
"order_id": "<order_id>"
},
"name": "submit_purchase_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes | ||
| confirm_token | No |