approveOrder
Approve, cancel, or reject a DMS approval workflow order using its workflow instance ID. Specify the approval action and an optional comment.
Instructions
Approve or reject an order in DMS. The workflow_instance_id can be obtained from getOrderInfo.
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": {
"workflow_instance_id": "<workflow_instance_id>",
"approval_type": "<approval_type>"
},
"name": "approveOrder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflow_instance_id | Yes | Approval workflow ID, can be obtained from getOrderInfo API | |
| approval_type | Yes | Approval action: AGREE (approve), CANCEL (cancel), REJECT (reject) | |
| comment | No | Comment for the approval action | Order approved via MCP |