Skip to main content
Glama
1c-odata-mcp

1c-odata-mcp

by foxnaim

Данные для акта сверки

read.counterparty.get_reconciliation
Read-only

Fetch counterparty reconciliation data for a selected period, including balances, turnover, document entries, and contract breakdown, to verify settlements and prepare a reconciliation act.

Instructions

Взаиморасчёты с контрагентом за период для акта сверки — по данным организации: сальдо на начало и конец «в пользу организации / контрагента», строки по документам (дата, документ, номер, договор, дебет, кредит; printNumber — номер как в печатной форме), обороты, разбивка по договорам, организация. Проверяются счета 60, 62 и 76 (без 76.АВ/76.ВА), в accounts — те, где есть движения или остатки; зачёт аванса внутри расчётов с тем же контрагентом в строки не попадает, как в акте сверки 1С. counterpartyRef — Ref_Key из find_counterparty, contractRef — только один договор. Сам документ «Акт сверки» печатается из 1С.

Input Schema

NameRequiredDescriptionDefault
toYesДата конца периода (YYYY-MM-DD)
fromYesДата начала периода (YYYY-MM-DD)
databaseNoИмя базы 1С из list_databases. Без указания — база по умолчанию.
contractRefNoRef_Key договора — сверка по одному договору
organizationNoОрганизация (юрлицо) для фильтра: часть названия, ИНН или Ref_Key из list_organizations. Без указания — все организации базы.
counterpartyRefYesRef_Key контрагента (из find_counterparty)

Output Schema

NameRequiredDescriptionDefault
scanYes
countYes
linesYes
periodYes
closingYes
openingYes
databaseYes
byContractYes
consistentYes
counterpartyYes
organizationNo
debitTurnoverYes
creditTurnoverYes
counterpartyRefYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover read-only and open-world hints, and the description adds genuinely non-obvious semantics: only accounts with movements or balances appear in accounts, advance offsetting within the same counterparty is excluded from lines to mirror the 1C act, and printNumber is the number as it appears in the printed form. It does not mention performance, volume limits, or empty-result behavior, but the interpretive context it supplies is substantial.

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?

The purpose and scope are front-loaded in the first clause, and the dense semicolon-separated structure packs a lot of useful detail without filler. The final sentence about the print form is short and sets a real expectation. It is long, but each clause carries information an agent would otherwise have to discover.

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 six-parameter read tool with a full output schema and read-only annotations, this is nearly complete: scope, account coverage, exclusion rules and counterpartyRef provenance are all present. The row-level return explanation is somewhat redundant given the output schema exists, but it is harmless and reinforces interpretation.

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%, and the description largely repeats what the schema already documents (counterpartyRef sourced from find_counterparty, contractRef limited to a single contract, organization filter). The one marginal addition is the explicit 'only one contract' limitation on contractRef, which the schema already implies. Baseline 3 is appropriate 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.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a precise verb+resource+scope: settlements with a counterparty for a period, for a reconciliation act. It goes further by naming the accounting scope (accounts 60, 62 and 76 excluding 76.АВ/76.ВА) and the exact output rows (opening/closing balances, document lines, turnover, contract breakdown), which clearly separates it from sibling reads like get_account_turnover or get_debtors.

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 makes the intended use case clear (data for a reconciliation act) and routes the agent to find_counterparty for the counterpartyRef value, plus a constraint that contractRef accepts only one contract. It also sets an expectation boundary by stating the actual 'Акт сверки' print form is generated in 1C, so the agent won't expect this tool to produce it. It stops short of explicitly naming when to prefer an alternative tool.

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