Skip to main content
Glama
1c-odata-mcp

1c-odata-mcp

by foxnaim

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

read.analytics.get_purchases_breakdown
Read-only

Summarizes purchases for a date range, broken down by supplier, month, contract, or total, with filters for counterparty, category, organization, and contract.

Instructions

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

Input Schema

NameRequiredDescriptionDefault
toYesДата конца периода (YYYY-MM-DD)
fromYesДата начала периода (YYYY-MM-DD)
limitNoСколько групп вернуть
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 observedv0.12.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 is covered. The description adds one genuinely useful behavioral fact, that only 'проведённые' (posted) receipts are counted, but says nothing about ordering of 'top' results, pagination beyond limit, or how totals treat VAT.

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 purpose and breakdown dimensions are front-loaded, followed by filters and example questions. The trailing 'Период — даты YYYY-MM-DD' duplicates the schema pattern and could be dropped, but overall it is 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, full parameter coverage, and annotations present, the description covers what the tool aggregates, how it can be grouped and filtered, and typical questions. It leaves the relationship between groupBy and limit (limit = number of groups) and result ordering implicit, which is a minor gap.

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 the schema already documents every parameter including date patterns, enum values, and defaults. The description only restates the date format and the available filter dimensions, adding no meaning beyond the schema.

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?

The description states a specific verb and resource: it aggregates posted receipts (purchases) over a period with a breakdown by supplier, month, contract, or total. The word 'закупки'/'поступления' clearly separates it from the sales-analytics sibling tools, though no sibling is named explicitly.

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 description gives concrete example questions ('топ поставщиков за год', 'закупки по месяцам', 'сколько закупили у ИП') and lists the filters that narrow the result. It never states when NOT to use it or which sibling (e.g. get_sales_breakdown, get_payments_breakdown) to pick for a different but similar question.

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