Skip to main content
Glama

kronos_update_event

DestructiveIdempotent

Update an existing Kronos booking: reschedule it by changing dates/times, cancel it with status_id=0 while keeping history, or edit custom fields without affecting other values.

Instructions

Изменить запись — перенос времени, отмена или правка кастомных полей, PATCH /api/v1/event.

Три типовых сценария:

  • Перенос: передайте date_from/date_to/time_from/time_to.

  • Отмена: передайте status_id=0 (это штатный способ отмены с сохранением истории — предпочтительнее, чем kronos_delete_event, которое удаляет запись безвозвратно). Можно дополнительно передать loss_reason_id (1 = Нет оплаты, 2 = Не пришёл).

  • Правка кастомных полей: передайте custom_fields — непереданные поля сохраняют текущее значение, пустая строка очищает значение поля.

Args: params (UpdateEventInput): filial_id, id (обязательны); date_from, date_to, time_from, time_to, status_id, loss_reason_id, custom_fields (опциональны, передайте только то, что действительно меняете).

Returns: str: JSON-ответ Кронос как есть.

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
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false. The description adds beyond that: cancel via status_id=0 preserves history, loss_reason_id enumerations, custom_fields merge semantics (unset means keep, empty string clears), and raw JSON return. No mention of auth/ratelimit, but annotations carry the safety burden and nothing contradicts them.

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?

Compact intro followed by scannable bullet-style scenarios; Args and Returns are cleanly separated. Every line earn hers place with no filler or tautology.

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?

For a multi-scenario mutation tool, the combination of description, annotations, and rich schema covers purpose, common use cases, parameter semantics, return format, and the key sibling alternative. Nothing required for correct invocation is missing.

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?

Although the context signal reports 0% schema coverage, the actual input schema contains full descriptions for every parameter. The description still adds the 'only send what changes' behavior and organizes parameters by scenario, going slightly beyond the schema's per-field documentation.

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?

States specific verb 'изменить' (update), resource 'event', and enumerates three concrete operation types (reschedule, cancel, custom-field edit). Explicitly contrasts with kronos_delete_event, so an agent can distinguish it from siblings at a glance.

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?

Provides three clearly marked scenarios with the exact parameters to pass for each, instructs to 'pass only what you actually change', and names kronos_delete_event as the inferior alternative for cancellation because it destroys history—explicit when/when-not guidance.

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