Skip to main content
Glama
1C OData MCP

1C OData MCP

История по покупателю

read.counterparty.get_customer_history
Read-only

Retrieve a buyer's sales documents and invoices for a specified period, showing sold items and amounts using the counterparty Ref_Key.

Instructions

Документы реализации и счета по контрагенту-покупателю за период. Показывает, что и на какие суммы продавали клиенту. Ref_Key — из find_counterparty.

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": {
      "ref": "<ref>"
    },
    "name": "read.counterparty.get_customer_history"
  }
}

Input Schema

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

Output Schema

NameRequiredDescriptionDefault
noteNo
rowsYes
countYes
periodYes
truncatedYes
counterpartyYes

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?

readOnlyHint=true already declares the safety profile, so the description only needs to add context. It does add that the result is sales/invoice documents with amounts, but says nothing about whether documents from all organizations are mixed, what periods it defaults to when from/to are omitted, or the shape of the result beyond that.

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?

Three short sentences, front-loaded with what is returned, then what it answers, then how to get the key input. No filler or repetition of schema details.

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 and full parameter documentation, the description only needs to frame purpose and inputs, which it largely does. The remaining gap is routing — for a task with many overlapping sales/analytics siblings, it does not say why an agent should choose this tool over them.

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 (from/to/limit/offset/database/organization) is already documented in the schema itself, making 3 the baseline. The description contributes one extra hint beyond the schema — that 'ref' comes from find_counterparty — which is genuinely useful but limited to a single parameter.

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 names a concrete resource set (документы реализации и счета) scoped to a buyer counterparty over a period, and adds what the data answers ('что и на какие суммы продавали клиенту'). The word 'покупателю' implicitly separates it from read.counterparty.get_supplier_history, but no sibling is named explicitly, keeping it one step short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: the tool is for querying a known counterparty's sales history, and the note 'Ref_Key — из find_counterparty' tells the agent where to obtain the required input. There is no statement of when to prefer this over read.analytics.get_sales / get_sales_report or over the supplier variant, and no when-not guidance.

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