Skip to main content
Glama

Выбрать страну и город

set_location
Idempotent

Switches the active country and city so menus, prices, currency, stores, and cart match the selected location; use before ordering if the user is elsewhere. Switching resets the cart.

Instructions

Переключает страну и город. Меню, цены, валюта, пиццерии и корзина у Додо привязаны к городу, поэтому вызывай это ДО сборки заказа, если пользователь не в текущем городе. Корзина при переключении начинается заново.

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": {
      "city": "<city>"
    },
    "name": "set_location"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityYesГород: «Москва», «Astana», «Ташкент»
countryNoСтрана: «Россия», «ru». По умолчанию — текущая

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 declare the write/idempotent/non-destructive profile, and the description adds the critical side effect that is not captured there: the cart is reset on switching, which an agent could otherwise misread from destructiveHint=false. It does not cover failure behavior for an invalid city, which keeps it short of a 5.

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?

Two sentences total, both earning their place; the mutating action is front-loaded and the ordering rule and side effect follow immediately. No filler.

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 two-parameter mutation with no output schema, the description covers purpose, ordering, and consequence adequately. The only gaps are what happens on an invalid city and whether valid values should be fetched via list_cities first, which is minor given the schema supplies format examples.

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%, including name-format examples for both city and country and the default for country. The description adds no parameter-level meaning beyond that, so the baseline of 3 applies.

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 gives a specific verb and resource ('Переключает страну и город') plus the scope of what is affected (menu, prices, currency, pizzerias, cart). This is clearly distinguishable from read-only siblings like list_cities and list_countries, which merely enumerate options.

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 states an explicit precondition and ordering rule: call this BEFORE assembling the order if the user is not in the current city. The condition that selects this tool is spelled out rather than implied.

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