Skip to main content
Glama
1C OData MCP

1C OData MCP

Продажи за период

read.analytics.get_sales
Read-only

Calculate total revenue from completed sales documents for a specified date range, optionally filtered by organization.

Instructions

Сумма выручки по проведённым документам реализации за период (по полю СуммаДокумента). Можно ограничить организацией. Период задаётся датами YYYY-MM-DD. Это сумма документов, а не выручка в учёте: при агентской схеме сюда входят деньги комитентов. Выручка компании — кредитовый оборот счёта 90.01 (read.accounting.get_account_turnover). Не разбивает по способу оплаты: реализация в 1С с картой, СБП или банком не связана. Поступившие деньги по каналам — read.accounting.get_account_card по счёту 62 с groupBy corrAccount (кредит с 51, 50, 57) и по счёту 57.03: это оплаты, а не выручка периода, и эквайринг, ещё не отнесённый на покупателей, виден только на 57.03.

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

Input Schema

NameRequiredDescriptionDefault
toYesДата конца периода (YYYY-MM-DD)
fromYesДата начала периода (YYYY-MM-DD)
databaseNoИмя базы 1С из list_databases. Без указания — база по умолчанию; если баз несколько и неясно какая, спросите пользователя.
organizationNoОрганизация (юрлицо) для фильтра: часть названия, ИНН или Ref_Key из list_organizations. Без указания — все организации базы.

Output Schema

NameRequiredDescriptionDefault
scanYes
totalYes
periodYes
databaseYes
byDocumentYes
organizationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.1/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 safety profile is covered; the description goes further by disclosing what the number actually contains — only posted documents, inclusion of agency principals' money, and no payment-method dimension. It does not discuss currency, VAT treatment, or totals behaviour, which would be the remaining behavioral gaps.

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 core definition is front-loaded in the first sentence, followed by the caveats and sibling routing. It is dense and long, but nearly every sentence carries semantic weight (agency scheme, no payment-method split, where to look for payments); the account/groupBy detail at the end is slightly heavy for a description.

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?

An output schema exists, so return values need not be explained, and the description covers the aggregation semantics, the posting filter, the organization scope, and the alternative tools. Minor omissions such as currency or whether amounts include VAT leave it just short of fully complete.

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 baseline is 3. The description only restates what the schema already documents — the YYYY-MM-DD date format and the optional organization restriction — without adding selection logic or edge-case meaning for any parameter.

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 and resource — the sum of revenue from posted sales documents (by the СуммаДокумента field) for a period — and explicitly contrasts it with the two nearest siblings: accounting revenue (read.accounting.get_account_turnover) and received payments (read.accounting.get_account_card). The clause 'Не разбивает по способу оплаты' also implicitly separates it from the breakdown-style siblings.

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?

Names alternatives together with the condition that selects them: use get_account_turnover for company revenue on account 90.01, and get_account_card on 62/57.03 for money actually received by channel. The positive 'when to use this' is only implied by the definition itself rather than stated as a scenario, so it falls just short of fully explicit routing.

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