Skip to main content
Glama
1C OData MCP

1C OData MCP

Карточка счёта

read.accounting.get_account_card
Read-only

Retrieve an account's transaction card for a period, including movements, corresponding accounts, analytics, running and opening/closing balances, plus grouped totals for reconciliation.

Instructions

Карточка счёта за период — каждое движение с корреспонденцией: дата, документ, содержание, Дт или Кт, корреспондирующий счёт и его аналитика, остаток после движения; сальдо на начало, обороты, сальдо на конец (сверено с регистром, consistent). account — код или префикс («51», «62.01», «26»). Отбор: counterpartyRef — контрагент (Ref_Key из find_counterparty), dimensionRef — любое другое субконто (договор, номенклатура, банковский счёт, документ расчётов). Сторно приходит отрицательной суммой в debit/credit. documentCreatedAt — когда документ создан (по ссылке): помогает найти документы, внесённые после закрытия месяца. Если остаток сложился до периода — возьмите период шире. Для разбора: откуда остаток на 26, кто дал красное сальдо, как сложился долг. Сальдо и balance: плюс — дебет, минус — кредит. count — строки карточки (проводка внутри счёта даёт две), scan.rowsScanned — проводки. Ответ постраничный: count — всего движений, returned — сколько в этом ответе; при truncated=true читайте дальше с offset=nextOffset и snapshot из прошлого ответа, пока в ответе есть nextOffset; dataChanged — данные изменились, начните заново. За один ответ не больше 100 строк и примерно 45000 символов, что бы ни стояло в limit. Обороты и остатки всегда по всему периоду. Итоги по месяцам, корреспондирующим счетам, контрагентам или договорам (своей или корреспондирующей стороны): groupBy, сумма групп равна оборотам карточки; с summaryOnly=true строк нет и ответ быстрее. Для этого не нужно читать все страницы. balanceTracked=false — отбор по субконто только с оборотами (статья ДДС на 51, статья затрат на 91): сальдо по нему в 1С нет, верны только обороты. Не отдаёт обороты по субсчетам (это get_account_turnover) и не разбирает текст назначений платежей.

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>",
      "from": "<from>",
      "to": "<to>"
    },
    "name": "read.accounting.get_account_card"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesДата конца периода (YYYY-MM-DD)
fromYesДата начала периода (YYYY-MM-DD)
limitNoСколько движений показать, в одном ответе не больше 100
offsetNoС какого движения начать (0 — с начала); значение из nextOffset прошлого ответа
accountYesКод счёта или префикс субсчетов
groupByNoИтоги по всем движениям периода: month — месяц, corrAccount — корреспондирующий счёт, counterparty и contract — контрагент и договор на счёте карточки, corrCounterparty и corrContract — на корреспондирующем счёте (покупатель проводки по 76.09, получатель платежа по 51). С их Ref_Key. Можно сочетать
databaseNoИмя базы 1С из list_databases. Без указания — база по умолчанию; если баз несколько и неясно какая, спросите пользователя.
snapshotNosnapshot прошлой страницы: если данные изменились, в ответе будет dataChanged
summaryOnlyNoТолько сальдо, обороты и groups, без строк движений
dimensionRefNoRef_Key другого субконто: договор, номенклатура, банковский счёт
organizationNoОрганизация (юрлицо) для фильтра: часть названия, ИНН или Ref_Key из list_organizations. Без указания — все организации базы.
counterpartyRefNoRef_Key контрагента (из find_counterparty)

Output Schema

NameRequiredDescriptionDefault
scanYes
countYes
groupsNo
offsetYes
periodYes
accountYes
entriesYes
databaseYes
returnedYes
snapshotNo
truncatedYes
consistentYes
nextOffsetNo
dataChangedNo
organizationNo
debitTurnoverYes
balanceTrackedNo
closingBalanceYes
creditTurnoverYes
openingBalanceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say readOnlyHint=true and openWorldHint=true, but the description adds substantial behavior: a hard ceiling of ~100 rows / 45000 characters regardless of limit, the truncated→nextOffset→snapshot→dataChanged pagination loop, turnovers and balances always computed over the whole period, storno arriving as negative debit/credit amounts, the sign convention for balance, and the balanceTracked=false caveat where only turnovers are valid. This is exactly the kind of context annotations cannot carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Content is dense and front-loaded with the core definition, but it is one long semicolon-chained paragraph mixing output fields, pagination mechanics, grouping, sign conventions and exclusions with no visual structure. Some pagination wording duplicates the schema's own offset/snapshot descriptions, so a few clauses do not add new value.

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 12-parameter accounting tool with a read-only profile, the definition covers filtering, pagination, aggregation and accounting edge cases (negative storno, balance sign, balanceTracked=false). It is thorough; the small gap is the dangling 'documentCreatedAt' reference, which is not in the input schema and is not clearly marked as a returned row field.

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, but the description adds real meaning: account is a code or a subaccount prefix ('51', '62.01', '26'), counterpartyRef comes from find_counterparty, dimensionRef accepts any other subconto, and groupBy dimensions can be combined including the correlating-side variants (corrCounterparty/corrContract). Minor deduction because 'documentCreatedAt' is described as a filter-like field although no such input parameter exists, leaving a small ambiguity.

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?

States a specific verb+resource ('Карточка счёта за период') and enumerates exactly what one row contains (дата, документ, содержание, Дт/Кт, корреспондирующий счёт, остаток после движения) plus the period-level totals. It explicitly separates itself from siblings: 'Не отдаёт обороты по субсчетам (это get_account_turnover) и не разбирает текст назначений платежей', so an agent can distinguish it from 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete use cases ('откуда остаток на 26, кто дал красное сальдо, как сложился долг'), an operational condition ('Если остаток сложился до периода — возьмите период шире'), and an explicit redirect to get_account_turnover for subaccount turnover. It also tells the agent that groupBy totals require no page-by-page reading, which selects the right invocation mode.

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