Skip to main content
Glama

kronos_create_event

Create bookings and group events in Kronos, including individual appointments, group slots, and child bookings attached to a parent group event.

Instructions

Создать запись (бронь) в Кронос, POST /api/v1/event.

Поддерживает три сценария (по официальным примерам вендора):

  1. Обычная индивидуальная запись — заполните order/contact, оставьте is_group пустым.

  2. Групповое событие (сам сеанс/слот) — is_group=True, max_count, group_service_id, без order/contact.

  3. Дочерняя запись на групповое событие (например, доборные дети/доплата) — parent_id указывает на id уже созданного группового события, count — сколько мест занимает эта дочерняя запись, свои order/contact.

ВАЖНО: max_count — это верхний предел вместимости, Кронос НЕ проверяет никакой нижний порог (минимальный размер группы) — эту валидацию должен делать вызывающий код, полагаться на API тут нельзя.

Args: params (CreateEventInput): filial_id, date_from, date_to, time_from, time_to (обязательны); остальные поля см. описание модели — status_id, name, parent_id, count, is_group, max_count, group_service_id, resources, order, contact, custom_fields, analytics (все опциональны, зависят от сценария).

Returns: str: JSON-ответ Кронос (201) как есть — форма не задокументирована вендором, но по аналогии с {id} в bind-lead ожидается id созданной записи.

Error Handling: - "Error: Kronos rejected the request (HTTP 401/403)..." при неверном ключе/филиале - "Error: Kronos API request failed with HTTP 400..." при неверной комбинации полей (например is_group=True вместе с contact) — проверьте тело ошибки в сообщении

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=false, destructiveHint=false), the description discloses critical runtime behavior: the max_count field has no lower-bound validation and callers must enforce minimum group size, the success response is an undocumented JSON string with an expected id, and error handling details exact HTTP failure patterns. This goes well beyond what annotations convey.

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?

Although long, every section earns its place: purpose, numbered scenarios, required args, return format, and error handling. It is front-loaded with the main purpose and uses clear structure (Args, Returns, Error Handling) plus a prominent ВАЖНО warning, making it easy for an agent to scan.

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

Completeness5/5

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

The description is complete for a complex creation tool: it covers three concrete scenarios, required versus optional fields, the undocumented response shape, and the two main error modes. It effectively closes the gaps left by annotations and the input schema, giving an agent everything needed to invoke the tool correctly.

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?

The input schema already documents each field in detail, so the description does not need to repeat them. It adds meaningful scenario-to-parameter mappings (which fields belong to which booking type) and reiterates the max_count caveat. This is above the baseline because it explains how to combine parameters, not just what each parameter means.

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 concrete verb and resource: 'Создать запись (бронь) в Кронос, POST /api/v1/event.' It clearly states the tool creates a Kronos booking and differentiates the three supported creation scenarios, which separates it from sibling tools that list, get, update, or delete events.

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?

The description gives explicit scenario-based usage: individual booking, group event, and child booking, with required and forbidden field combinations for each (e.g., is_group=True without order/contact). It also warns that is_group=True with contact yields HTTP 400. It does not explicitly name alternative sibling tools, so it falls just short of full exclusion guidance.

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