Skip to main content
Glama
1C OData MCP

1C OData MCP

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

write.accounting.set_settlement_settings
Destructive

Creates or updates settlement account settings for a contract, counterparty, or group, with preview and confirmation to prevent duplicate writes.

Instructions

Создаёт отсутствующую настройку (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>",
      "settlementKind": "<settlementKind>",
      "scope": "<scope>",
      "mode": "<mode>",
      "accounts": "<accounts>"
    },
    "name": "write.accounting.set_settlement_settings"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYes
scopeYes
confirmNo
accountsYes
databaseNoИмя базы 1С из list_databases. Без указания — база по умолчанию; если баз несколько и неясно какая, спросите пользователя.
contractRefNo
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.1/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the concurrency model: CAS via expectedDataVersion and If-Match when DataVersion is published, and the weaker singleWriter=true path with no atomic protection when it is not. It also spells out validation performed (organization, IsFolder, non-deletion, contract owner/organization/currency) and idempotent replay via operationId.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Content is front-loaded with the create/update distinction, but the body is a long run-on paragraph of semicolon-chained clauses that is harder to scan than a short bulleted structure would be. Little is wasted, but readability suffers.

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 complex mutation with nested objects and an output schema, the description covers concurrency, validation, preview/confirm lifecycle, scope semantics, and exclusions. The accounts subfields and settlementKind values are not elaborated, which is the notable omission.

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 25% schema coverage, the description compensates substantially by explaining mode, scope, expectedDataVersion/If-Match behavior, singleWriter, and operationId reuse. The nested accounts object and settlementKind enum values are left to the schema, which is the main remaining gap for a 12-parameter tool.

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?

Opens with a specific verb pair and resource: creates a missing settlement-account setting (create) or changes explicitly named resources (update). It also differentiates itself from the legacy name set_contract_settlement_settings, which only supports contracts. Dense phrasing but the agent can identify what the tool does.

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?

Explicitly states preconditions and routing: scope=contract requires a contract, counterparty/group persist without one, global settings and deletion are unavailable, and the flow is preview first then confirm with identical arguments plus operationId. It does not name read-side siblings for inspection, but the when/when-not guidance is clear.

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