Skip to main content
Glama
1C OData MCP

1C OData MCP

Изменить объект (общий)

write.entity.update_entity
DestructiveIdempotent

Updates only specified fields of a 1C entity by Ref_Key via PATCH; dry-run preview by default, apply with confirm=true.

Instructions

Изменяет произвольные поля объекта 1С через PATCH по Ref_Key. Имена полей — технические (узнать через describe_entity), напр. {"ИНН":"7701234567"}. По умолчанию предпросмотр (dry-run); применение — при confirm=true. Мощный инструмент: меняйте только те поля, что указали. После записи поля перечитываются: успех — только если 1С сохранила всё. Договор и счета расчётов банковских документов этим инструментом не меняются — write.document.apply_bank_settlement_settings; проведение — write.document.post_document, пометка удаления — write.entity.mark_for_deletion.

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": {
      "entitySet": "<entitySet>",
      "ref": "<ref>",
      "fields": "<fields>"
    },
    "name": "write.entity.update_entity"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYesRef_Key объекта (GUID)
fieldsYesПоля для изменения: { техническоеИмя: значение }
confirmNofalse (по умолчанию) — только предпросмотр (dry-run), запись НЕ выполняется. true — выполнить создание. Сначала всегда показывайте dry-run и получайте согласие пользователя; при подтверждении передавайте operationId из результата предпросмотра и те же аргументы. После таймаута повторяйте подтверждение с тем же id, не создавая новый предпросмотр.
databaseNoИмя базы 1С из list_databases. Без указания — база по умолчанию; если баз несколько и неясно какая, спросите пользователя.
entitySetYesИмя объекта, напр. Catalog_Контрагенты

Output Schema

NameRequiredDescriptionDefault
refNo
noteNo
notesNo
dryRunNo
fieldsNo
updatedNo
databaseNo
replayedNo
verifiedNo
entitySetNo
willPatchNo
descriptionNo
operationIdNo
readbackNoteNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.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, so the safety profile is known. The description adds genuinely new behavioral facts: dry-run is the default, fields are re-read after writing and success is reported only if 1C persisted everything, and only explicitly listed fields are touched. It does not cover permission requirements or partial-failure reporting detail, which keeps it just below the top mark.

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?

The purpose and payload shape are front-loaded in the first two sentences, then dry-run/confirm semantics, then verification behavior, then sibling exclusions. No sentence is filler: even the closing sibling list exists to prevent misuse of a destructive tool.

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?

An output schema exists, so return values need no explanation. For a destructive, 5-parameter, nested-object mutation tool, the description still supplies the field-discovery path, the dry-run/confirm workflow, the verification guarantee, and the exclusion set — everything an agent needs to call it safely.

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 100%, so the baseline is 3. The description goes beyond the schema by showing a concrete field payload example ({"ИНН":"7701234567"}) and, more importantly, telling the agent to obtain technical field names via describe_entity — a prerequisite the schema only hints at.

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 specific verb+resource: it changes arbitrary fields of a 1C object via PATCH keyed on Ref_Key. It immediately scopes the tool against siblings by naming the operations it does NOT cover (bank settlement settings, posting, mark-for-deletion) and specifying which sibling handles each.

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 explicitly when the tool applies (arbitrary field changes by Ref_Key) and when it does not, routing the agent to write.document.apply_bank_settlement_settings, write.document.post_document, and write.entity.mark_for_deletion by name. It also states the default dry-run behavior and that application requires confirm=true, so the agent knows the two-step invocation pattern before reading the schema.

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

Deploy Server

Other Tools