Skip to main content
Glama

Подобрать заказ

plan_order
Read-only

Selects a food set for a group based on people, budget, calories per person, and dietary limits, returning a priced calorie estimate without placing an order.

Instructions

Подбирает набор под задачу: «на компанию из N человек», «уложиться в бюджет», «до N калорий на человека», «без мяса», «не острое». Калорийный лимит считается на весь стол после деления на людей. Возвращает предложение с ценой и калориями — покажи его пользователю, а после согласия передай items в compose_order. Ничего не заказывает и корзину не трогает.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "plan_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
budgetNoВерхняя граница суммы в валюте страны
peopleNoСколько человек кормим. По умолчанию 1
meat_freeNoБез мяса и морепродуктов
not_spicyNoБез острого
grams_per_personNoСколько граммов еды на человека, по умолчанию 350 (≈3–4 куска пиццы 30 см)
max_calories_per_personNoЛимит калорий на человека ПОСЛЕ деления заказа на всех. Для 4 человек по 600 ккал бюджет стола — 2400 ккал, а не 4 пиццы по 600.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, and the description reinforces that with "Ничего не заказывает и корзину не трогает", plus it discloses the return shape (a proposal with price and calories), which matters since there is no output schema. What it omits is the external-world dependence flagged by openWorldHint=true — availability likely varies by selected store/location, and nothing warns the agent that results may be location-bound or that an empty result is possible.

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

Conciseness4/5

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

Three compact sentences, front-loaded with the capability and constraint vocabulary, then the return value, then the handoff rule. The quoted example intents are dense but each one maps to a real parameter, so nothing is wasted; the phrasing is slightly list-heavy but readable.

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?

With six optional parameters, no required inputs, and no output schema, the description covers what is needed to call and follow up correctly, including the return value and the handoff to compose_order. The remaining gap is edge-case behavior: what the agent should do when no set satisfies the constraints, and how strict each constraint is.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description earns an extra point by mapping natural-language user intents ("на компанию из N человек", "уложиться в бюджет", "без мяса") onto the corresponding parameters, which speeds intent-to-parameter translation. The calorie explanation largely restates the schema's own max_calories_per_person note, so it adds little beyond the schema there.

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 names a specific verb and object ("Подбирает набор под задачу") and anchors it with four concrete constraint phrasings (company of N, budget, calories, meat-free, not spicy). It also explicitly separates itself from compose_order and place_order by stating "Ничего не заказывает и корзину не трогает", so an agent can distinguish it from every sibling that mutates an order.

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?

It gives a full usage path: use it for constraint-based selection, show the returned proposal with price and calories to the user, and only after agreement pass `items` to compose_order. The follow-up tool is named with the exact condition that selects it, and the no-side-effect clause implies when not to reach for the ordering tools.

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