Skip to main content
Glama
1C OData MCP

1C OData MCP

Откуда сложилось сальдо

read.accounting.get_balance_origin
Read-only

Breaks down an account balance as of a date into contributing documents and traces when each balance component began, exposing old residuals not visible in monthly account cards.

Instructions

Из каких документов состоит остаток по счёту на дату и с какого времени он висит — для старых хвостов, которых не видно в карточке за месяц. Где учёт ведётся по документам расчётов (62, 60, 76 в БП), состав — из сальдо 1С (method = documents). Иначе — по истории движений (method = movements): момент, с которого остаток держится непрерывно, и доля каждого документа, дожившая до даты; поиск назад до maxYears лет. since — дата самого старого документа остатка, documentCreatedAt — когда документ создан. Отбор: counterpartyRef — контрагент, dimensionRef — договор, номенклатура, банковский счёт.

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": {
      "account": "<account>"
    },
    "name": "read.accounting.get_balance_origin"
  }
}

Input Schema

NameRequiredDescriptionDefault
asOfNoОстаток на конец этой даты (без параметра — сегодня) (YYYY-MM-DD)
accountYesКод счёта или префикс субсчетов
databaseNoИмя базы 1С из list_databases. Без указания — база по умолчанию; если баз несколько и неясно какая, спросите пользователя.
maxYearsNoКак далеко назад искать по движениям
dimensionRefNoRef_Key другого субконто: договор, номенклатура, банковский счёт
organizationNoОрганизация (юрлицо) для фильтра: часть названия, ИНН или Ref_Key из list_organizations. Без указания — все организации базы.
counterpartyRefNoRef_Key контрагента (из find_counterparty)

Output Schema

NameRequiredDescriptionDefault
asOfYes
scanYes
sideYes
countYes
itemsYes
sinceNo
methodYes
accountYes
balanceYes
databaseYes
organizationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the readOnly/openWorld annotations, it discloses the two internal resolution modes (documents vs movements), that the movements mode searches backwards up to maxYears and computes each document's surviving share, and what since/documentCreatedAt mean. A reader cannot tell whether the listed 'method' values are an input or an internal decision, which is a real ambiguity but not an annotation conflict.

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 the standout use case are front-loaded in the first sentence, and there is no filler. The remaining content is packed into one dense paragraph of semicolon-separated clauses, which is efficient but harder to scan than separate mode/filter sentences would be.

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 a full output schema and 100% parameter coverage, the description carries only the burden of purpose and method behavior, which it largely does. The one residual gap is the undefined 'method' vocabulary, which an agent may mistakenly try to pass as an argument since no such parameter exists in the schema.

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 coverage is 100%, so the parameters are already fully documented in the schema; the description mostly restates them (counterpartyRef = контрагент, dimensionRef = договор/номенклатура/банковский счёт). It adds only the conceptual link between maxYears and the movements search depth, which the schema already states. Baseline 3 applies.

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?

Names a specific resource and question: which documents compose the account balance as of a date and since when it has been held. It also carves out its niche against the sibling card report by saying it is meant for old tails that are not visible in the monthly card, so an agent can tell it apart from get_account_card/get_account_turnover without opening schemas.

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?

The phrase 'для старых хвостов, которых не видно в карточке за месяц' gives an explicit when-to-use condition versus the monthly card. It also explains under which accounting setups each internal mode applies (62/60/76 in БП vs other accounts). It stops short of naming the alternative tool by name or stating when not to use this one.

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