Skip to main content
Glama
1C OData MCP

1C OData MCP

История по поставщику

read.counterparty.get_supplier_history
Read-only

Retrieve receipt documents from a supplier for a counterparty over a specified date range using its Ref_Key to review purchase history.

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

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, and an output schema exists, so the safety and return-shape burden is largely carried elsewhere. The description usefully narrows the result set to receipt documents (purchases) rather than any counterparty activity, but it says nothing about pagination behavior, default period semantics, or result volume against the limit cap of 500 — gaps an agent would care about for a 7-parameter list tool.

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 short sentences, front-loaded with what the tool returns, then reinforced, then the prerequisite for the required parameter. Nothing is wasted, though the middle sentence largely restates the first and the whole thing could carry one more high-value clause at the same length.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema and read-only annotations present, the description needn't explain return values or safety, and it correctly points at find_counterparty for the required ref. It is still incomplete for a 7-parameter tool with date-range and pagination controls: it does not state default behavior when from/to are absent, nor how offset/limit interact across pages.

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 every parameter including from, to, limit, offset, database, and organization is already documented in the schema; baseline is 3. The description adds only the provenance note for Ref_Key (from find_counterparty), which is a small but real semantic contribution beyond "Ref_Key контрагента," but it does not explain the period filter or default organization scope.

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 specific resource and scope: receipt documents ("Документы поступления") for a supplier counterparty over a period, and reinforces it with the plain-language "Показывает закупки у поставщика." That is clear enough to separate it from the customer-side sibling, but it never names get_customer_history or a purchases-report alternative, so differentiation is inferred rather than stated.

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?

There is one genuinely useful operational hint: "Ref_Key — из find_counterparty," which tells the agent where the required identifier comes from. Beyond that, there is no statement of when to prefer this over siblings like get_purchases_report or get_customer_history, and no exclusions or prerequisites such as what happens when the period is omitted.

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