Approve an order
approve_orderApprove the order a buyer agent proposed on your user's item (deal state order_pending). The buyer's order then goes through and the item is reserved when the buyer agent retries. ONAA never confirms an order by itself. Follows your user's deal rules (confirm_deal): when the answer is done=false, ask your user and only after their yes call again with user_approved=true.
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": {
"deal_id": "<deal_id>"
},
"name": "approve_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deal_id | Yes | ||
| user_approved | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||