Отмена продуктового заказа
grocery_order_cancelCancel a grocery order by order ID, whether paid or unpaid, and refund paid orders to the original account. Show the order and get user confirmation before canceling.
Instructions
Отменить продуктовый заказ (Город) — оплаченный или ещё нет. Деньги за оплаченный возвращаются на счёт списания. Покажи пользователю заказ и дождись согласия, прежде чем отменять.
paymentId НЕ нужен (в отличие от ticket_cancel): приложение отменяет по одному orderId. Вердикт — payload.status ("Success"/"Failed" + code; 605 = заказ уже отменён), внешний "status":"Ok" успехом НЕ является.
app_id (из grocery_stores() или grocery_attempts()) не обязателен, но с ним тул сразу перечитает заказ и покажет фактический статус — до перечитывания «принято» ещё не значит CANCELED. Если тул вернул ошибку, статус заказа НЕИЗВЕСТЕН — grocery_order_status() или приложение.
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": "grocery_order_cancel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | No | ||
| order_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |