Skip to main content
Glama
1C OData MCP

1C OData MCP

Разбивка закупок за период

read.analytics.get_purchases_breakdown
Read-only

Summarize completed purchases by supplier, month, contract, or total for a date range, and filter by counterparty category, contract, or organization.

Instructions

Суммирует проведённые поступления товаров/услуг (закупки) за период с разбивкой по поставщику / месяцу / договору / итогу. Можно фильтровать конкретным поставщиком, категорией контрагента или договором. Отвечает на вопросы вроде «топ поставщиков за год», «закупки по месяцам», «сколько закупили у ИП». Период — даты YYYY-MM-DD.

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_purchases_breakdown"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesДата конца периода (YYYY-MM-DD)
fromYesДата начала периода (YYYY-MM-DD)
limitNoСколько групп вернуть
offsetNoС какой строки начать (0 — с начала); значение из nextOffset прошлого ответа
groupByNoРазбивка: counterparty (контрагент), month (месяц), contract (договор), total (без разбивки)counterparty
databaseNoИмя базы 1С из list_databases. Без указания — база по умолчанию; если баз несколько и неясно какая, спросите пользователя.
contractRefNoRef_Key договора (точечный фильтр)
organizationNoОрганизация (юрлицо) для фильтра: часть названия, ИНН или Ref_Key из list_organizations. Без указания — все организации базы.
counterpartyRefNoRef_Key контрагента (точечный фильтр)
counterpartyKindNoКатегория контрагента: ИП, ЮрЛицо, ФизЛицо (без ИП), Нерезидент, Госорган

Output Schema

NameRequiredDescriptionDefault
scanYes
totalYes
groupsYes
periodYes
filtersYes
groupByYes
databaseYes
documentsYes
entitySetYes
organizationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and openWorldHint, so safety needs no restating. The description adds one genuinely useful behavioral fact — only posted ('проведённые') receipts are counted — but says nothing about defaults, result size, or how paging behaves in practice, leaving that to the schema.

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 opening sentence leads with the verb and scope, and each following sentence adds a distinct layer (dimensions, filters, example questions, date format). Slightly redundant repetition of 'разбивка' and the trailing date-format note keep it from being maximally tight.

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 an output schema present, return values need not be explained, and the schema documents all 10 parameters including database selection guidance. The description covers purpose, breakdown modes, and filters adequately; it could still say when to choose another analytics tool, but nothing required for a correct call 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?

Schema description coverage is 100%, so every parameter is already documented with format, enum values, and defaults (including the nextOffset hint). The description restates the date format and names the filterable dimensions, which adds orientation but no meaning beyond the schema — the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Суммирует проведённые поступления товаров/услуг') plus the exact breakdown dimensions (поставщик / месяц / договор / итог). This distinguishes it in substance from an aggregate report like get_purchases_report, but no sibling is named explicitly, so the differentiation is inferred rather than stated.

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 example questions ('топ поставщиков за год', 'закупки по месяцам', 'сколько закупили у ИП') give an agent concrete selection cues, and the filter list clarifies what narrows the result. It stops short of saying when to prefer the sibling get_purchases_report instead, so there is no explicit exclusion or alternative.

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