Skip to main content
Glama
1C OData MCP

1C OData MCP

Разбивка платежей за период

read.analytics.get_payments_breakdown
Read-only

Summarizes completed bank and cash payments over a date range by operation, month, counterparty, cash flow item, or total, with filters for direction, counterparty, and purpose.

Instructions

Суммирует проведённые банковские и кассовые документы за период с разбивкой по выбранному признаку (вид операции / месяц / контрагент / статья ДДС / итог). Фильтры: направление (приход/расход), контрагент (Ref_Key), категория контрагента (ИП/ЮрЛицо/ФизЛицо/Нерезидент/Госорган), статья ДДС (по коду/имени/Ref), подстрока в назначении платежа (напр. «аренда»), вид операции. Отвечает на вопросы вроде «сколько процентов получили за год от такого-то банка», «сколько заплатили ИП за год», «куда уходили деньги по статьям ДДС», «приход по месяцам». Период — даты YYYY-MM-DD. Контрагент в банковских документах хранится полиморфно — фильтр применяется на стороне коннектора; статья ДДС / назначение / период / организация — на сервере 1С. Документ «Оплата платёжной картой» сюда не входит: это отражение в учёте, деньги приходят банковским поступлением; пустой ответ по контрагенту-покупателю не значит, что оплат нет (карточка 62). Суммы — как зачислено: поступление, из которого банк удержал комиссию, показано за её вычетом. Отдельного поля «карта или СБП» нет, различить можно только по формулировке банка в purposeContains. Оборот до комиссии и удержанную комиссию по банкам и месяцам даёт read.accounting.get_account_card по счёту 57.03 с groupBy month, counterparty, corrAccount: весь кредит — оборот, кредит с корреспонденцией 91.02 — комиссия. Комиссию, которую банк списывает отдельным документом (обычно СБП), там не видно: она здесь, direction out, purposeContains с её формулировкой.

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": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "read.analytics.get_payments_breakdown"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesДата конца периода (YYYY-MM-DD)
fromYesДата начала периода (YYYY-MM-DD)
groupByNoРазбивка: operation (вид операции), month (месяц), counterparty (контрагент), cashflowItem (статья ДДС), total (без разбивки)operation
databaseNoИмя базы 1С из list_databases. Без указания — база по умолчанию; если баз несколько и неясно какая, спросите пользователя.
directionNoin — приход, out — расход, both — оба (по умолчанию)both
cashflowItemNoСтатья ДДС: код (напр. «00-000006»), часть наименования (напр. «Аренда») или Ref_Key
organizationNoОрганизация (юрлицо) для фильтра: часть названия, ИНН или Ref_Key из list_organizations. Без указания — все организации базы.
operationTypeNoТочный вид операции (ВидОперации), напр. «ПрочееПоступление», «Депозит»
counterpartyRefNoRef_Key контрагента (из find_counterparty)
purposeContainsNoПодстрока в назначении платежа (напр. «процент», «депозит», «аренда»)
counterpartyKindNoКатегория контрагента: ИП, ЮрЛицо, ФизЛицо (без ИП), Нерезидент, Госорган. Берётся из справочника по полям ЮридическоеФизическоеЛицо / ИндивидуальныйПредприниматель и т.п.

Output Schema

NameRequiredDescriptionDefault
netYes
scanYes
groupsYes
inflowYes
periodYes
filtersYes
groupByYes
outflowYes
databaseYes
directionYes
documentsYes
organizationNo

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?

Beyond the readOnly/openWorld annotations it discloses real behavioral traits: counterparty filtering happens connector-side while cashflowItem/purpose/period/organization filtering happens server-side, amounts are net of bank commission, an empty buyer-counterparty result does not prove absence of payments (card 62), and card-vs-SBP can only be inferred from the bank's wording in purposeContains. It also flags a residual gap in the sibling tool (commission charged as a separate document is only visible here).

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, filters, and example questions are front-loaded, then caveats follow — a sound structure for an 11-parameter tool. The final commission/57.03 passage is dense and slightly over-explained relative to the rest, which keeps it from a 5, but nearly every sentence carries decision-relevant information.

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 complex multi-filter aggregation tool with 11 parameters, an output schema, and read-only annotations, the description covers the high-risk ambiguities an agent would otherwise get wrong: excluded document type, net-of-commission amounts, polymorphic counterparty filtering, and the sibling fallback for commission analysis. With the output schema handling return values, nothing essential 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, but the description adds meaning the schema does not: it explains why counterpartyRef is filtered client-side (polymorphic storage), gives purposeContains use cases, and notes that the period/date format is YYYY-MM-DD. It does not add much for groupBy or direction beyond the enum descriptions, which keeps it at 4 rather than 5.

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 opening sentence names a specific verb and resource ("Суммирует проведённые банковские и кассовые документы") plus the grouping dimension set (operation/month/counterparty/cashflowItem/total), and the closing sentences explicitly delimit it against the sibling read.accounting.get_account_card. An agent can tell it apart from get_account_card, get_cashflow, and the purchases/sales breakdowns without opening any schema.

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?

It supplies concrete question patterns that select this tool ("сколько процентов получили за год от такого-то банка", "куда уходили деньги по статьям ДДС"), states an explicit exclusion ("Оплата платёжной картой" is not counted here), and routes the agent to read.accounting.get_account_card for turnover/commission with the exact account and groupBy arguments. This is a when-to-use / when-not-to-use / alternative specification, not a hint.

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