Skip to main content
Glama
1C OData MCP

1C OData MCP

Провести / отменить проведение документа

write.document.post_document
Destructive

Posts or unposts a 1C document to change accounting records; uses dry-run preview by default and applies changes only when confirmed.

Instructions

Проводит документ (влияет на учёт) или отменяет проведение. По умолчанию предпросмотр (dry-run); применение — при confirm=true. Для повторного проведения Posted=true задайте repost=true, post=true и expectedDataVersion. Версионный Post использует PostingModeOperational=false без Unpost; проверяет состояние документа, не проводки. ВНИМАНИЕ: проведение меняет учётные данные — используйте осознанно.

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>"
    },
    "name": "write.document.post_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYesRef_Key документа (GUID)
postNotrue — провести, false — отменить проведение
repostNoЯвно разрешить повторный Post уже проведённого документа; требует post=true и expectedDataVersion
confirmNofalse (по умолчанию) — только предпросмотр (dry-run), запись НЕ выполняется. true — выполнить создание. Сначала всегда показывайте dry-run и получайте согласие пользователя; при подтверждении передавайте operationId из результата предпросмотра и те же аргументы. После таймаута повторяйте подтверждение с тем же id, не создавая новый предпросмотр.
databaseNoИмя базы 1С из list_databases. Без указания — база по умолчанию; если баз несколько и неясно какая, спросите пользователя.
entitySetYesИмя документа, напр. Document_СчетНаОплатуПокупателю
operationIdNoUUID из предпросмотра. Передайте его при confirm=true, чтобы повтор не создал дубликат.
expectedDataVersionNoDataVersion документа сейчас — из read.audit.get_document_history (dataVersion) или read.document.get_document. С ней предпросмотр, проведение и проверка после него идут через журнал; если версия документа уже другая — отказ. Post и Unpost — отдельные действия 1С, атомарность не гарантирована.

Output Schema

NameRequiredDescriptionDefault
refNo
doneNo
noteNo
actionNo
dryRunNo
databaseNo
postingsNo
readbackNo
verifiedNo
willCallNo
movementsNo
postingsNoteNo
readbackNoteNo
movementsNoteNo
readbackFetchedNo
movementsVerifiedNo
verificationScopeNo
accountingMovementsVerifiedNo

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?

Well past what the annotations declare: it discloses the dry-run default, the confirm gate, version-conflict refusal semantics, that Post and Unpost are separate 1C actions with no atomicity guarantee, and that the versioned Post runs with PostingModeOperational=false and validates document state rather than postings. The warning that posting mutates accounting data is consistent with destructiveHint=true and readOnlyHint=false.

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?

Dense but front-loaded: the core operation, the dry-run rule, the repost recipe, then the caution. Minor defects: the confirm parameter text says 'выполнить создание' (a copy-paste artifact from a create tool), and 'PostingModeOperational=false' is dropped in without explanation.

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?

Given an output schema already exists and annotations cover the destructive/open-world profile, the description supplies everything else an agent needs: safe preview-then-confirm workflow, version capture, repost preconditions, and the accounting-impact warning. Nothing material for correct invocation is missing.

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

Parameters3/5

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

Schema description coverage is 100%, so every parameter is already documented in detail, including the repost dependency on post=true and expectedDataVersion. The description mostly restates those same relationships rather than adding new parameter meaning. Baseline 3 applies since the schema does the heavy lifting.

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?

The first sentence states the concrete operation in both directions ('Проводит документ (влияет на учёт) или отменяет проведение'), and the caveat 'проверяет состояние документа, не проводки' scopes the effect against the sibling read.accounting.get_document_postings. It is specific about verb and resource; what holds it back from a 5 is the absence of any explicit routing statement toward the sibling tools that would be used instead when the user only wants to inspect postings.

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 a clear operating procedure: dry-run by default, live application only with confirm=true, and the exact flag combination (repost=true, post=true, expectedDataVersion) needed to re-post an already-posted document. It even names where to obtain expectedDataVersion (read.audit.get_document_history / read.document.get_document). No explicit 'when not to use' or alternative-action exclusions are stated, so it falls 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