Skip to main content
Glama
1C OData MCP

1C OData MCP

Проводки документа

read.accounting.get_document_postings
Read-only

Retrieve accounting postings generated by a specific document, including debit/credit accounts, subaccounts, amounts, and totals for reconciliation.

Instructions

Бухгалтерские проводки, сформированные одним документом (регистратором), из регистра бухгалтерии Хозрасчетный: Дт/Кт (код, наименование, Ref_Key счёта, субконто), сумма, у каждой стороны dimensionsStatus: present/empty — субконто есть/подтверждённо пусты, not_in_schema/not_returned — аналитику установить нельзя (это не «пусто»). количество/валютная сумма, итоги Дт/Кт и свод по корреспонденциям счетов. Подходит для любого вида документа (Document_*). Только чтение. documentEntity — имя документа из list_entities (class=document), documentRef — его Ref_Key (из search_documents).

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": {
      "documentEntity": "<documentEntity>",
      "documentRef": "<documentRef>"
    },
    "name": "read.accounting.get_document_postings"
  }
}

Input Schema

NameRequiredDescriptionDefault
databaseNoИмя базы 1С из list_databases. Без указания — база по умолчанию; если баз несколько и неясно какая, спросите пользователя.
documentRefYesRef_Key документа (GUID)
documentEntityYesИмя документа, напр. Document_РегламентнаяОперация

Output Schema

NameRequiredDescriptionDefault
noteNo
scanYes
sourceYes
databaseYes
documentYes
postingsYes
debitTotalYes
creditTotalYes
postingsCountYes
dimensionsNoteNo
byCorrespondenceYes

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?

Annotations already declare readOnlyHint=true, so the sentence 'Только чтение' adds nothing and is not counted. The genuine value is the disclosure that each side carries dimensionsStatus with present/empty/not_in_schema/not_returned and the warning that not_in_schema means analytics cannot be determined rather than being genuinely empty – a trap an agent would otherwise misread in the output.

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 what the tool returns, then the field inventory, then the dimensionsStatus caveat, then parameter sourcing – a sensible order. It is dense (long comma-chained clauses), but no sentence is redundant; the only wasted words are the annotation-restating 'Только чтение'.

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?

With an output schema present and full schema description coverage, the description only needs to supply what structured fields cannot. It does that for the dimensionsStatus semantics and parameter provenance; the shape of the correspondence summary is left to the output schema, which is acceptable given its existence.

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 it by tying documentEntity and documentRef to the producing tools (list_entities, search_documents) rather than just restating types. The database parameter is left to the schema, which already explains the default and the ask-the-user rule.

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 a specific verb and resource: accounting entries (проводки) generated by a single document (регистратор) from the Хозрасчетный register, and enumerates the returned fields (Дт/Кт with account code, name, Ref_Key, субконто, amount, currency amount, Dt/Ct totals, correspondence summary). It explicitly states it applies to any Document_* type, which separates it from sibling register-wide tools such as get_account_turnover or get_account_card.

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?

It tells the agent where each required parameter comes from (documentEntity from list_entities with class=document, documentRef from search_documents), which is real routing guidance. What is missing is an explicit contrast with the register-level siblings (when to use this per-document view instead of a turnover report) and any when-not-to-use condition.

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