Skip to main content
Glama

Собрать заказ

compose_order

Builds a valid Dodo Pizza order from natural-language requests: selects SKUs, validates toppings, calculates price, adds items to cart, and explains available options for invalid combinations.

Instructions

Превращает пожелания в валидную конфигурацию: подбирает SKU по размеру и тесту, проверяет допустимость каждого топинга, считает цену. Если комбинация невозможна — объясняет, что доступно. Кладёт позиции в корзину.

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": {
      "items": "<items>"
    },
    "name": "compose_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYesПозиции заказа
replaceNotrue — заменить корзину целиком, иначе добавить
show_api_payloadNoПоказать тело запроса к реальному API

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-destructive, open-world mutation. The description adds real behavioral value by disclosing that invalid toppings are rejected, price is computed, and impossible combinations return an explanation of what is available. However it never mentions that the 'replace' flag wipes the existing cart, nor that an authenticated session is presumably required — both material for a cart-mutating tool.

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?

Three dense sentences, front-loaded with the transformation, then the failure mode, then the side effect on the cart. No filler, no restatement of the title, and the fallback behavior is stated where an agent will read it.

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

Completeness3/5

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

For a mutation tool with no output schema, the description covers the happy path and the invalid-combination path reasonably well. It leaves gaps around authentication, whether the cart persists across calls, and the consequence of 'replace' — things an agent needs to call it safely.

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 coverage is 100%, so the schema already documents every field, including the nested item properties and their examples. The description only adds meaning for size/dough selection and topping validation; it says nothing about the cart-replacement semantics of 'replace' or the diagnostic purpose of 'show_api_payload'. Baseline 3 is appropriate.

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

Purpose4/5

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

The description states a specific verb chain and resource: resolve SKU by size and dough, validate each topping, compute price, and place items into the cart. This makes it clearly a cart-composition tool rather than a checkout or pricing-preview tool. It stops short of naming a sibling (place_order, estimate, plan_order), so an agent must infer the boundary from behavior alone.

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

Usage Guidelines3/5

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

Usage is implied by 'Превращает пожелания в валидную конфигурацию' — use it when turning loose customer wishes into a concrete cart. There is no explicit when-not guidance and no pointer to place_order for finalizing or estimate for a price-only check, both of which are adjacent siblings in the catalog.

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