Skip to main content
Glama

Оформить заказ

place_order
Destructive

Confirms and submits a cash or card-on-delivery food order after the user reviews the itemized total and gives explicit approval.

Instructions

Оформляет заказ с оплатой при получении. ТРЕБУЕТ явного подтверждения человека: сначала покажи пользователю состав и итоговую сумму из estimate, дождись прямого «да», и только потом вызывай с confirmed_by_human: true. Никогда не вызывай по своей инициативе и не подтверждай за пользователя. Онлайн-оплата не поддерживается — только наличные или карта курьеру. Для наличных можно указать change_from — с какой купюры готовить сдачу.

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": {
      "confirmed_by_human": "<confirmed_by_human>"
    },
    "name": "place_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
change_fromNoТолько для cash: с какой купюры готовить сдачу, например 10000. Не указан — курьер приедет без сдачи. Должно быть не меньше суммы заказа.
payment_methodNocash — наличные курьеру (по умолчанию), card_on_delivery — карта при получении
confirmed_by_humanYestrue только если пользователь увидел итоговую сумму и явно подтвердил ИМЕННО этот заказ

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already flag destructive write behavior, but the description adds the critical operational context they cannot express: a mandatory human confirmation gate, the supported payment methods, and that online payment is unsupported. It does not explain what happens after the order is placed (order id, failure modes, whether the cart is cleared), which is the main remaining behavioral gap.

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 hard constraint (requires human confirmation) is front-loaded, followed by the escalation procedure, then payment constraints, then an optional parameter detail. Every sentence carries a distinct instruction and there is no padding.

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

Completeness4/5

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

For a destructive, non-idempotent mutation with no output schema, the description covers the confirmation protocol and payment constraints well. It leaves unclear where the delivery address/order contents come from (related siblings set_location, suggest_addresses exist) and what the caller receives on success, but neither is fatal.

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

Parameters3/5

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

Schema description coverage is 100%, so the enum for payment_method and the meaning of confirmed_by_human and change_from are already fully documented. The description restates change_from's cash-only nature and purpose, which reinforces but does not meaningfully extend the schema. Baseline 3 is appropriate here.

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?

States a specific verb and resource (places an order) plus a scope qualifier (payment on delivery only, no online payment). It also names the related 'estimate' step, so an agent can distinguish it from the planning/estimate siblings without opening any schema.

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?

Gives an explicit two-step precondition: first show the user the composition and total from estimate, wait for a direct 'yes', only then call with confirmed_by_human: true. It also states an explicit prohibition (never call on your own initiative, never confirm on the user's behalf), which is the strongest form of when-not-to-use guidance.

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