Skip to main content
Glama

Отмена продуктового заказа

grocery_order_cancel

Cancel 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() или приложение.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
app_idNo
order_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description discloses significant behavioral detail beyond annotations: paid orders are refunded to the debit account, the result must be evaluated from payload.status rather than the outer status, code 605 means already cancelled, and re-reading with app_id may be needed to confirm actual cancellation. This gives the agent a realistic model of the tool's side effects and response evaluation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is dense but every statement is functional. It front-loads the purpose, follows with refund and consent handling, then captures important parameter conditions and response semantics. There is no filler or redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity and a small parameter set, the description covers action, outcomes, return-behavior semantics, edge cases like already-cancelled orders, and handling when status is unknown. Even though there is an IS input schema, the description does not need to explain the return shape, but it also gives the critical interpretation of the response.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description carries the full burden for both parameters. The description explains that order_id is the sole cancellation key, that paymentId/payment_id is specifically NOT required, and that app_id is optional, sourced from grocery_stores()/grocery_attempt(), and improves status accuracy. This fully compensates for the unhelpful JSON schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific action and resource: cancel a grocery order, whether paid or unpaй. It additionally distinguishes itself from the sibling ticket_cancel by noting paymentId is not needed, and names the relevant order identifier, so an agent can correctly select this tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives explicit usage direction: use this to cancel a grocery order, it requires consent from the user first, paymentId is not needed unlike ticket_cancel, and app_id is optional but beneficial. It also tells the agent what to do if the tool returns an error: check grocery_order_status or rely on the app, making whens and alternatives clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/icyberdeveloper/tbank-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server