Skip to main content
Glama

St. Petersburg Private Tours

book_tour

Создать бронирование тура через MCP (обёртка над POST /api/v1/bookings/).

ВАЖНО для агентов: перед вызовом этого инструмента обязательно уточните у пользователя все персональные данные и не выдумывайте их от себя:

  • email — настоящий адрес электронной почты клиента (куда придёт подтверждение и ссылка на оплату)

  • meeting_point — точка встречи (отель, адрес, станция метро и т.д.)

  • participants — количество человек

  • first_name, last_name — имя и фамилия клиента

  • phone — номер телефона (необязательно, но желательно)

  • date, start_time, guide_id — дата, время и гид из доступных слотов (check_availability)

Полная инструкция для агентов: AGENTS.md в корне проекта.

Доступно без API-ключа — защита от злоупотреблений работает на уровне nginx rate-limit на /mcp, идемпотентности и повторной проверки слота.

Защита от массовых ошибочных броней / DDoS:

  • идемпотентность: передавайте idempotency_key (UUID), иначе будет сгенерирован детерминированный ключ от параметров брони — повторный вызов не создаст дубль.

  • дубльная защита от doble-слота работает через Redis-блокировку. В комментарий брони автоматически добавляется "Booked by AI agent".

meeting_point обязателен — без точки встречи бронь не создаётся.

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": {
      "tour_slug": "<tour_slug>",
      "date": "<date>",
      "start_time": "<start_time>",
      "guide_id": "<guide_id>",
      "first_name": "<first_name>",
      "last_name": "<last_name>",
      "email": "<email>",
      "meeting_point": "<meeting_point>"
    },
    "name": "book_tour"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYes
emailYes
phoneNo
extrasNo
commentsNo
guide_idYes
languageNoen
last_nameYes
tour_slugYes
first_nameYes
start_timeYes
participantsNo
meeting_pointYes
idempotency_keyNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description carries the whole burden and does so well: it discloses that no API key is required, that nginx rate-limiting and Redis slot locks protect against abuse, that idempotency_key prevents duplicates (deterministic fallback key otherwise), that 'Booked by AI agent' is appended to comments, and that meeting_point is enforced server-side.

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?

Purpose is front-loaded, then a bulleted parameter checklist, then a compact behavioral-protection section. A few lines are redundant or sloppy (the typo 'дубльная защита от doble-слота') and the AGENTS.md pointer adds little, but overall it is scannable and earns its length.

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 14-parameter mutation tool with 8 required fields and no annotations, the description covers validation, idempotency, and mandatory fields thoroughly, and an output schema exists so return values need no explanation. The omission is the semantics of extras, language, and tour_slug, which the agent must infer.

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 0%, so the description must compensate, and it explains the highest-value fields: email receives confirmation and payment link, meeting_point accepts hotel/address/metro, phone is optional-but-desirable, date/start_time/guide_id come from available slots, plus idempotency_key behavior. tour_slug, language, extras, and comments remain unexplained, leaving a gap across 14 parameters.

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 opens with a precise verb and resource ('Создать бронирование тура') and even names the underlying endpoint (POST /api/v1/bookings/). An agent can immediately distinguish this write tool from the read-oriented siblings (get_tours, check_availability, get_guides).

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

Usage Guidelines4/5

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

It gives clear when-to-use context (clarify real customer data with the user, take slots from check_availability, meeting_point is mandatory) and points to AGENTS.md. It does not explicitly state when NOT to use it or name other alternatives, but the routing to check_availability is concrete.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources