Skip to main content
Glama
1C OData MCP

1C OData MCP

Расчёты с партнёрами (УТ 11, КА 2, ERP 2)

read.analytics.get_partner_settlements
Read-only

Retrieve partner settlement balances from 1C management accounting to see client receivables or supplier payables, including overdue debt, aging, prepayments, and payment schedules.

Instructions

Кто кому должен по управленческим расчётам с партнёрами: регистры «Расчёты с клиентами / поставщиками по срокам» (УТ 11, КА 2, ERP 2; проверено на УТ 11.5). Это не счёт 62/60 бухучёта (в Бухгалтерии — get_debtors / get_creditors; в КА и ERP суммы могут расходиться). side=clients — долг клиентов нам, side=suppliers — наш долг поставщикам. debt — долг, prepayment — предоплата (аванс), net = debt − prepayment, всё в регламентированной валюте. overdue — долг с плановой датой погашения раньше даты расчёта (on: asOf или сегодня), aging — долг по срокам просрочки (сторно с минусом может сделать отдельную корзину отрицательной, сумма корзин всегда равна debt), maxOverdueDays — самая старая просрочка партнёра. Отбор: organization, partner (Ref_Key партнёра), overdueOnly — только партнёры с просрочкой, managers — расчёты этих менеджеров (Ref_Key пользователей 1С, read.catalog.list_users; менеджер — у объекта расчётов); byManager=true — итоги по менеджерам в byManager. schedule (day, week, month) — платёжный календарь: долг по датам планового погашения вперёд до horizon, просрочка, долг за горизонтом и без даты — отдельно. partners — по убыванию net; count — всего партнёров, длинный список читайте с offset=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": {
      "side": "<side>"
    },
    "name": "read.analytics.get_partner_settlements"
  }
}

Input Schema

NameRequiredDescriptionDefault
asOfNoДата расчётов — на конец этой даты (без параметра — текущие) (YYYY-MM-DD)
sideYesclients — долги клиентов нам; suppliers — наши долги поставщикам
limitNoСколько партнёров вернуть
offsetNoС какой строки начать (0 — с начала); значение из nextOffset прошлого ответа
horizonNoКонец календаря, только вместе с schedule (по умолчанию: day — 30 дней, week — 13 недель, month — 6 месяцев, считая текущие неделю и месяц) (YYYY-MM-DD)
partnerNoRef_Key партнёра
databaseNoИмя базы 1С из list_databases. Без указания — база по умолчанию; если баз несколько и неясно какая, спросите пользователя.
managersNoТолько расчёты этих менеджеров — Ref_Key пользователей 1С (read.catalog.list_users); менеджер — у объекта расчётов (заказ, договор, документ)
scheduleNoПлатёжный календарь (schedule): долг по датам планового погашения вперёд от on — по дням, неделям или месяцам; отдельно просрочка, долг за горизонтом и без даты
byManagerNoИтоги по менеджерам (byManager): долг, предоплата, net и просрочка каждого; без менеджера — отдельно
overdueOnlyNoТолько партнёры с просроченным долгом
organizationNoОрганизация (юрлицо): часть названия, ИНН или Ref_Key из list_organizations

Output Schema

NameRequiredDescriptionDefault
onYes
netYes
asOfNo
debtYes
noteNo
scanYes
sideYes
agingYes
countYes
overdueYes
databaseYes
partnersYes
scheduleNo
byManagerNo
prepaymentYes
organizationNo
managerFilterNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnlyHint/openWorldHint; the description adds substantive behavior: which registers are read, that amounts may diverge between КА/ERP and Бухгалтерия, that storning can make an aging bucket negative while bucket sums always equal debt, and that results are sorted by descending net with count/nextOffset pagination. These are exactly the caveats an agent cannot get from the structured fields.

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?

Front-loaded with the purpose and the anti-sibling routing in the first two sentences, and every clause carries semantic load. The price is a single dense paragraph mixing data-model notes, filtering, and pagination, which makes it harder to scan than a short bulleted layout would 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?

For a 12-parameter tool with an output schema, the definition covers data source, version caveats, all filter axes, aggregation semantics (debt/prepayment/net/overdue/aging), sorting and pagination. Nothing an agent needs in order to call it correctly is missing.

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; the description still adds meaning — that overdue is measured against asOf or today, that maxOverdueDays is the partner's oldest overdue, that managers are Ref_Key from read.catalog.list_users attached to the settlement object, and how schedule/horizon build the payment calendar with out-of-horizon and undated debt reported separately. Some parameters (limit, organization, database) are left entirely to the schema.

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 pins down the exact registers used. It explicitly distinguishes itself from the accounting-based siblings get_debtors/get_creditors, so an agent can pick it without opening other 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 explicit when-to-use ('управленческие расчёты', УТ 11/КА 2/ERP 2, verified on УТ 11.5) and when-not (это не счёт 62/60 бухучёта — для Бухгалтерии используйте get_debtors / get_creditors), plus the side=clients vs side=suppliers selector. Alternatives and exclusions are both named.

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