Skip to main content
Glama
1C OData MCP

1C OData MCP

Сохранить точную настройку счетов расчётов

write.accounting.set_contract_settlement_settings
Destructive

Create or update contract settlement account settings in 1C, with preview and confirmation safeguards for safe writes.

Instructions

УСТАРЕВШЕЕ ИМЯ — будет удалено в 2.0: используйте write.accounting.set_settlement_settings со scope=contract. Создаёт отсутствующую настройку (create) либо меняет явно указанные ресурсы (update) с expectedDataVersion и If-Match, когда DataVersion опубликован. Только если metadata не содержит DataVersion, update требует singleWriter=true (владелец подтвердил отсутствие параллельных изменений); If-Match не отправляется, атомарной защиты от конкуренции нет. Предпросмотр связан с текущей записью. scope=contract требует договор; counterparty/group сохраняет настройку точного контрагента/группы без договора. Проверяет организацию, IsFolder и отсутствие удаления; для договора также владельца, организацию и валюту. Сначала предпросмотр; подтверждение с теми же аргументами и operationId. Глобальные настройки и удаление недоступны. Старое имя set_contract_settlement_settings поддерживает только договор. Прочее не получает толкование займа/расхода.

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": {
      "organizationRef": "<organizationRef>",
      "counterpartyRef": "<counterpartyRef>",
      "contractRef": "<contractRef>",
      "settlementKind": "<settlementKind>",
      "mode": "<mode>",
      "accounts": "<accounts>"
    },
    "name": "write.accounting.set_contract_settlement_settings"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYes
confirmNo
accountsYes
databaseNoИмя базы 1С из list_databases. Без указания — база по умолчанию; если баз несколько и неясно какая, спросите пользователя.
contractRefYes
operationIdNoUUID из предпросмотра. Передайте его при confirm=true, чтобы повтор не создал дубликат.
singleWriterNoТолько для update без DataVersion в metadata: подтверждение отсутствия параллельного изменения настроек. Не отменяет CAS при опубликованной версии.
settlementKindYes
counterpartyRefYes
organizationRefYes
expectedDataVersionNo

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

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

Annotations only declare readOnlyHint=false, destructiveHint=true, openWorldHint=true; the description adds the real behavioral picture: optimistic concurrency via expectedDataVersion/If-Match, and that without a published DataVersion there is no atomic protection and singleWriter must be confirmed by the owner. It also discloses validation performed (organization, IsFolder, no deletion; owner/organization/currency for contracts) and the preview-then-confirm protocol. It could still be clearer about what is overwritten on update and whether omitted accounts are cleared.

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-loads the deprecation and the replacement tool, then layers behavior; sentences are dense but each carries substantive constraints. Some run-on phrasing (the singleWriter and contract-scope sentences) and minor repetition about the old name supporting only contracts cost it a point.

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 an 11-parameter mutation with an output schema and required preview/confirm flow, the definition covers the risky, non-obvious parts: CAS, singleWriter fallback, validation scope, and what is not supported. Gaps remain around settlementKind semantics and the accounts object, which an agent must infer from the schema alone.

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 only 27% across 11 parameters, so the description must compensate, and it does for the hard ones: mode create vs update, expectedDataVersion vs If-Match, when singleWriter applies, operationId reuse on confirm, and the meaning of scope=contract vs counterparty/group. It adds nothing about settlementKind enum values or the four accounts fields, which schema enums/UUID formats partly cover.

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 names the exact operation (create a missing settlement-account setting, or update explicitly listed resources), states it is the deprecated alias of write.accounting.set_settlement_settings with scope=contract, and notes that the old name only supports contracts. An agent can tell immediately what it does and that a successor tool exists.

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?

Explicitly says the name is deprecated and will be removed in 2.0, pointing to the replacement with scope=contract. It also states when singleWriter is required (update without DataVersion), that preview must come first with confirmation using the same arguments plus operationId, and that global settings and deletion are unavailable — clear when/when-not coverage.

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