Skip to main content
Glama
1C OData MCP

1C OData MCP

Указать группу отдельного контрагента

write.counterparty.set_group
Destructive

Update a counterparty's parent group by setting Parent_Key, with cycle and deletion checks, expected data version validation, and preview/confirm safeguards.

Instructions

Меняет только Parent_Key отдельного контрагента (subjectKind=counterparty, IsFolder=false). Перемещение самих групп запрещено: безопасность глубины их потомков не проверяется. parentRef — точная группа или пустой GUID для корня. Проверяет отсутствие удаления и цикла; expectedDataVersion обязателен, PATCH с If-Match, предпросмотр/confirm/operationId и контроль сохранения остальных полей. Удаление недоступно.

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": {
      "ref": "<ref>",
      "subjectKind": "<subjectKind>",
      "parentRef": "<parentRef>",
      "expectedDataVersion": "<expectedDataVersion>"
    },
    "name": "write.counterparty.set_group"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYes
confirmNo
databaseNoИмя базы 1С из list_databases. Без указания — база по умолчанию; если баз несколько и неясно какая, спросите пользователя.
parentRefYes
operationIdNoUUID из предпросмотра. Передайте его при confirm=true, чтобы повтор не создал дубликат.
subjectKindYes
expectedDataVersionYes

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.3/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: cycle and deletion checks, mandatory expectedDataVersion, PATCH with If-Match optimistic concurrency, preview/confirm/operationId idempotency, and verification that other fields remain intact. The only friction is the tension between destructiveHint=true and 'deletion unavailable', though the annotation covers destructive updates broadly, so this is clarification rather than contradiction.

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?

Front-loaded with the core action and scope, then proceeds through constraints. The semicolon-chained clauses are dense and telegraphic, but nearly every clause carries decision-relevant information; only minor tightening is possible.

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 mutation tool with an output schema and annotations covering the safety profile, the description supplies the concurrency, idempotency, and validation context an agent needs to call it correctly. Database selection is delegated to the schema, which is acceptable but the only remaining gap.

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?

With only 29% schema coverage, the description does real work: it explains parentRef as an exact group or empty GUID for root, marks expectedDataVersion as required, and describes the confirm/operationId preview pairing. It leaves subjectKind and database to the schema, which already documents them, so the essential semantics are covered.

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 a precise verb and resource: it changes ONLY the Parent_Key of a single counterparty, with explicit scope qualifiers (subjectKind=counterparty, IsFolder=false). It also draws the boundary against moving folders themselves, so an agent can distinguish this from entity/folder-moving siblings without opening their schemas.

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?

Gives clear when-not guidance: moving groups is forbidden because descendant depth safety is not checked, and deletion is unavailable. It also implies the preview-then-confirm workflow. It does not name the specific sibling an agent should use instead for folder relocation, keeping it short of a 5.

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