rr_create_draft_from_recommendation
Convert a recommendation into a draft purchase order or transfer for human review. Nothing is sent and no stock moves; supply the action’s last-read updated_at to prevent stale changes.
Instructions
Turn a recommendation into its draft purchase order or draft transfer, for a person to review. Nothing is sent to a supplier and no stock moves. It needs the action's updated_at as last read; if the user has not given it, read it with rr_preview_recommendation.
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": {
"action_id": "<action_id>",
"idempotency_key": "<idempotency_key>",
"expected_updated_at": "<expected_updated_at>"
},
"name": "rr_create_draft_from_recommendation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action_id | Yes | The recommendation id, from rr_list_recommendations. | |
| idempotency_key | Yes | A value you choose for this attempt. Repeating a call with the same value and the same arguments returns the first result and does nothing again. | |
| expected_updated_at | Yes | The action's updated_at as last read (rr_preview_recommendation or rr_get_recommendation). The call is refused if the action changed since, so it can be read again. |