Skip to main content
Glama
1C OData MCP

1C OData MCP

Проверка закрытия месяца

read.accounting.check_month_close
Read-only

Verifies month-close accounting for 1C: checks closing status, unposted documents, negative balances, account residuals, depreciation, and VAT invoices before reporting.

Instructions

Проверка учёта за месяц — то, что бухгалтер смотрит перед сдачей отчётности и после закрытия месяца: (1) закрытие месяца выполнено и без ошибок, закрыты ли предыдущие месяцы года; (2) непроведённые документы месяца; (3) красное сальдо на конец месяца — деньги и товары в минусе, расчёты 62/60 не на той стороне; (4) остатки на 90, 91 (должны быть в нуле) и 20–26, 44 после закрытия и документы, созданные позже операции закрытия (если остатки есть); (5) амортизация при наличии ОС и НМА; (6) реализации с НДС без счёта-фактуры. Каждая проверка — статус ok / warning / error / not_applicable / skipped, пояснение и строки (до 20). Остатки на 90/91/25/26 на начало месяца — признак, что прошлые месяцы закрыты не полностью. closingCreatedAt — когда впервые создана операция закрытия (документы, созданные позже, могли в него не попасть; перезакрытие этого времени не меняет). Для перехода в карточку счёта: analyticsRefs с analyticsTypes Catalog_Контрагенты — counterpartyRef, иначе dimensionRef. У регламентных операций в БП Posted = false — это нормально. Только чтение: закрыть месяц через OData нельзя, только проверить результат.

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

Input Schema

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

Output Schema

NameRequiredDescriptionDefault
scanYes
monthYes
checksYes
periodYes
statusYes
summaryYes
databaseYes
organizationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, so the read-only statement ('закрыть месяц через OData нельзя') is partly redundant, but the description adds real interpretive value beyond annotations. The closingCreatedAt caveat (documents created after the first close may be missing, re-closing does not change the timestamp), the note that Posted=false on regulatory operations is normal, and the start-of-month residual heuristic all prevent the agent from reporting false positives.

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?

Purpose and the numbered check list are front-loaded, and every sentence carries substantive information — the length is justified by a six-part composite diagnostic. The weakness is that it is one dense paragraph mixing checks, result shape, navigation hints, and caveats without separation, which makes scanning harder than it needs to be.

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?

Although an output schema exists, the description usefully explains the status vocabulary (ok / warning / error / not_applicable / skipped), the row cap of 20, and how to resolve analyticsRefs into a counterparty or dimension reference. Nothing an agent needs in order to call this tool and interpret its result is missing.

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?

All three parameters are fully documented in the schema (month with a YYYY-MM pattern, database, organization), so the schema carries the semantic load. The description adds no extra guidance on parameter choice — for example, no hint about how organization filtering interacts with the per-organization checks.

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 states a specific verb and resource (verification of month-end close) and then enumerates the six concrete checks it performs — close status, unposted documents, negative balances, 90/91/20–26/44 residuals, depreciation, VAT sales without invoices. This distinguishes it clearly from sibling accounting readers such as get_balance_origin or get_account_turnover, which return raw ledger data rather than a pass/fail diagnosis.

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 gives clear usage context — 'what an accountant looks at before submitting reports and after closing the month' — which tells the agent the right moment to reach for it. It stops short of naming an alternative sibling or stating when NOT to use it, so it falls short of a 5.

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