Skip to main content
Glama
1C OData MCP

1C OData MCP

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

read.analytics.get_sales_breakdown
Read-only

Summarizes completed sales for a date range by counterparty, month, contract, or total. Filter by counterparty, category, or contract to answer top-buyer or monthly-sales questions.

Instructions

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

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_sales_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

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the bar is lower, yet the description adds real substance: amounts are document-based (СуммаДокумента) and under agency schemes include principals' money, so figures can diverge from accounting revenue — a caveat an agent would otherwise miss. Pagination behavior is left to the offset parameter's nextOffset note and the output schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core operation, then filters, then example questions, then the date-format and revenue caveat. Every sentence carries information; the only mild redundancy is restating the date format and counterparty categories already present in the schema.

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?

For a ten-parameter analytics tool with an output schema and annotations, the description covers purpose, breakdown options, filterable dimensions, typical questions, and a material accounting caveat. The remaining gap is sibling disambiguation among the several other sales-reading tools.

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 coverage is 100%, so the schema already documents all ten parameters, including the counterpartyKind enum and YYYY-MM-DD patterns that the description partially repeats. The description adds interpretation (the four breakdown modes, when to ask the user about the database is only in the schema) but not much beyond it, so 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 — sums completed sales (СуммаДокумента) for a period — and enumerates the four breakdown axes (counterparty/month/contract/total). It cross-references get_account_turnover for accounting revenue, but never distinguishes itself from the closely named sales siblings (get_sales, get_sales_report, get_sales_register), so an agent still has to guess which sales tool to pick.

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 concrete use cases that map directly onto groupBy and counterpartyKind values. It also routes alternative accounting-revenue questions to get_account_turnover. It stops short of explicit when-not guidance versus the other sales tools.

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