Skip to main content
Glama
1C OData MCP

1C OData MCP

Движения по сделке/договору

read.analytics.get_deal_history
Read-only

Retrieves the bank and cash movement history for a deal or contract, with income, expenses, totals, balance, and optional date filtering by deal code or contract reference.

Instructions

Хронология всех проведённых банковских и кассовых движений по конкретной сделке либо договору: приход, расход, итоги и сальдо. Сделку можно задать кодом из назначения платежа (dealKey, напр. «CB12812240037987» — банковский идентификатор депозита/займа/контракта в назначении) или ссылкой на договор (contractRef, Ref_Key из find_counterparty + договор). Обязателен ровно один из них. Период — опционально (без него — всё время).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "read.analytics.get_deal_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoДата конца (YYYY-MM-DD)
fromNoДата начала (YYYY-MM-DD)
limitNoСколько событий вернуть
offsetNoС какой строки начать (0 — с начала); значение из nextOffset прошлого ответа
dealKeyNoКод сделки/контракта/документа в назначении платежа (напр. «CB12812240037987»). Серверный фильтр substringof по НазначениеПлатежа.
databaseNoИмя базы 1С из list_databases. Без указания — база по умолчанию; если баз несколько и неясно какая, спросите пользователя.
snapshotNosnapshot прошлой страницы: если данные изменились, в ответе будет dataChanged
contractRefNoRef_Key договора (для документов с ДоговорКонтрагента_Key)
organizationNoОрганизация (юрлицо) для фильтра: часть названия, ИНН или Ref_Key из list_organizations. Без указания — все организации базы.

Output Schema

NameRequiredDescriptionDefault
netYes
noteNo
scanYes
itemsYes
eventsYes
inflowYes
offsetYes
periodNo
filtersYes
outflowYes
databaseYes
returnedYes
truncatedYes
nextOffsetNo
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, and the description adds genuinely new behavior: dealKey is a server-side substringof filter on the payment purpose, paging is via limit/offset with nextOffset from the prior response, and snapshot triggers a dataChanged signal when underlying data shifts. Return composition (inflows, outflows, totals, balance) is also sketched. It does not discuss permissions or error conditions, but against read-only annotations this is solid added context.

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?

Three sentences, front-loaded with the resource and result shape before the deal-identification rules. The parenthetical example and clarifications are dense but each earns its place; there is minor nesting of asides inside parentheses.

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 9-parameter, read-only tool with an output schema, the description covers the decisions an agent must actually make: which identifier to supply, that exactly one is required, period defaults, paging continuation via nextOffset, and the dataChanged/snapshot contract. Database and organization defaults are covered by the schema, so nothing essential is missing, though error handling and multi-base disambiguation are only lightly touched.

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 baseline is 3, but the description adds real meaning on top: it explains what a dealKey actually is (a bank identifier of a deposit/loan/contract inside the payment purpose, with an example), how contractRef is obtained, and it enforces the exactly-one-of constraint that the schema does not express (required list is empty). The remaining parameters (organization, database, limit) are left to the schema, which already documents them.

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?

Names a specific verb and resource: a chronological list of all bank/cash movements for a specific deal or contract, including inflows, outflows, totals and balance. The scope (one deal or one contract) is precise enough to distinguish it from broader cashflow/analytics siblings, though it never names an alternative tool 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?

Gives a concrete selection rule for how to identify the deal: either dealKey (code from the payment purpose, with an example) or contractRef (Ref_Key from find_counterparty plus contract), and states that exactly one is required. It also says the period is optional and means 'all time' when omitted. No explicit when-not-to-use or sibling comparison is given, so it stops short of a 5.

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