Skip to main content
Glama
1C OData MCP

1C OData MCP

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

read.counterparty.get_reconciliation
Read-only

Retrieves counterparty reconciliation data for a period, including balances, turnovers, document lines, contract breakdown, and organization filters for a reconciliation act.

Instructions

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

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": {
      "counterpartyRef": "<counterpartyRef>",
      "from": "<from>",
      "to": "<to>"
    },
    "name": "read.counterparty.get_reconciliation"
  }
}

Input Schema

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

Output Schema

NameRequiredDescriptionDefault
scanYes
countYes
linesYes
offsetYes
periodYes
closingYes
openingYes
databaseYes
returnedYes
truncatedYes
byContractYes
consistentYes
nextOffsetNo
counterpartyYes
organizationNo
debitTurnoverYes
creditTurnoverYes
counterpartyRefYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.3/5.0
Behavior5/5

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

Annotations provide only readOnlyHint and openWorldHint, but the description discloses substantial behavior: accounts 60, 62, 76 are checked (excluding 76.АВ/76.ВА), only accounts with movements or balances appear, and advance offsetting within the same counterparty is excluded exactly as in the 1C act. It also explains the paging contract (nextOffset, truncated without nextOffset means no continuation) and clarifies that saldo/turnovers/byContract cover the whole period while rows are paginated.

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 description is a single dense block but is front-loaded with the tool's purpose and then the accounting scope and paging rules. Practically every sentence carries unique information; the density is justified by the tool's complexity, though splitting the paging rule into its own sentence would improve scanability.

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?

With eight parameters, paging, snapshot/dataChanged semantics, and a nuanced accounting scope, this tool is complex, and the description covers what an agent needs to call it correctly. Because an output schema exists, it does not need to enumerate return fields, and the remaining gaps are minor.

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 description coverage is 100%, so the schema already documents all eight parameters, establishing a baseline of 3. The description still adds meaning beyond the schema: it pins counterpartyRef to Ref_Key from find_counterparty, restricts contractRef to a single contract, and explains that offset should be carried forward from nextOffset while saldo/byContract remain period-wide regardless of paging.

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 description names a specific verb and resource: mutual settlements with a counterparty over a period for a reconciliation act. It also states exactly what is returned (saldo at start/end, document rows, turnovers, breakdown by contract, organization) and clarifies that the printable act itself is produced in 1C, so this tool only supplies the data. It does not explicitly distinguish itself from similar settlement/report siblings, keeping it shy of a 5.

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?

When-to-use is clear (settlements with one counterparty for a reconciliation act) and the description routes the agent: counterpartyRef comes from find_counterparty, contractRef accepts only one contract, and large acts must be paged with offset=nextOffset. However, it does not name an alternative sibling or state when this tool should not be used, so it stops short of full alternative guidance.

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