Skip to main content
Glama
kyvirok for 1C

kyvirok for 1C

Показать изменения в 1С

preview_change

Shows proposed field changes for creating or editing a 1C catalog item or draft document so a manager can review them before approved writes.

Instructions

Prepare creation or editing of one catalog item or draft document. Discover fields with describe_entity. A table field replaces ALL its rows. Show the returned changes to the manager.

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": {
      "connection": "<connection>",
      "entitySet": "<entitySet>",
      "operation": "<operation>",
      "fields": "<fields>"
    },
    "name": "preview_change"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNo
fieldsYes
entitySetYes
operationYes
connectionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.3/5.0
Behavior4/5

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

With zero annotations, the description carries the full behavioral burden and does disclose the single most dangerous semantic: "A table field replaces ALL its rows" tells the agent that supplying a table value is destructive to existing rows. It also implies the call stages rather than commits. It leaves unexplained whether the preview is persisted server-side, what identity/connection assumptions apply, and what confirmation flow follows.

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?

Four short sentences with the core purpose front-loaded and no filler; the prerequisite and the destructive table-row warning are each given their own sentence. "Show the returned changes to the manager" is slightly instructional rather than descriptive but still carries useful process information.

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

Completeness2/5

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

For a five-parameter, nested-object tool with no annotations and no output schema, the description should say more about the required connection, the role of key versus entitySet, and what the preview returns. It covers purpose, one prerequisite, and one critical field behavior, but leaves an agent unable to construct a correct update call from the description alone.

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

Parameters2/5

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

Schema description coverage is 0% across five parameters (connection, entitySet, operation, fields, key), so the description must compensate and largely does not. "One catalog item or draft document" loosely maps to entitySet and "creation or editing" hints at the create/update enum, but connection and especially key (the UUID identifying an existing record for update) are never mentioned, nor is how fields keys relate to entity field names.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Prepare creation or editing of one catalog item or draft document" states a specific verb (prepare, i.e. stage a change) and resource, and the title plus "show the returned changes" confirms this is a preview rather than a commit. It sits clearly upstream of apply_reviewed_change, though it never names that sibling to draw the boundary explicitly.

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

Usage Guidelines3/5

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

"Discover fields with describe_entity" gives a concrete prerequisite step, and "Show the returned changes to the manager" implies a review-then-confirm workflow. However, there is no explicit statement of when to use this instead of apply_reviewed_change, nor any exclusion or condition for skipping the preview.

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