Skip to main content
Glama
1C OData MCP

1C OData MCP

Поиск контрагента

read.counterparty.find_counterparty
Read-only

Finds counterparties by partial name or INN, returning reference keys, full names, roles, and contract counts; optionally includes groups for selection.

Instructions

Ищет контрагентов по части названия или по ИНН; subjectKind=group ищет группы в том же справочнике, all — оба вида. По умолчанию только контрагенты. Возвращает Parent_Key как parentRef и DataVersion как dataVersion для безопасного изменения группы. Возвращает список совпадений с Ref_Key (используйте его в get_counterparty и истории взаиморасчётов), полным наименованием и ролями по видам договоров (roles: покупатель, поставщик, комитент…; contracts — число договоров) — помогает выбрать из однофамильцев. Пример: «найди контрагента Ромашка» или «контрагент с ИНН 7701234567».

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

Input Schema

NameRequiredDescriptionDefault
limitNoСколько вернуть
queryYesЧасть названия или ИНН контрагента
offsetNoС какой строки начать (0 — с начала); значение из nextOffset прошлого ответа
databaseNoИмя базы 1С из list_databases. Без указания — база по умолчанию; если баз несколько и неясно какая, спросите пользователя.
subjectKindNocounterparty

Output Schema

NameRequiredDescriptionDefault
noteNo
rowsYes
countYes
truncatedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered; the description goes further by disclosing the returned shape (Ref_Key, full name, roles by contract type, contract counts) and the purpose of Parent_Key/DataVersion for safe group modification. That is meaningful context beyond the annotations, though it does not mention result caps or how many matches trigger truncation.

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 description is front-loaded with the search scope and the subjectKind switch, then the return contract, then examples; each clause carries information. It is on the dense side — the Parent_Key/DataVersion sentence could be trimmed since a group-edit tool is the real consumer — but there is no filler.

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, return-field detail is partly redundant, yet the description still supplies what the schema cannot: the disambiguation rationale ('помогает выбрать из однофамильцев') and the downstream Ref_Key handoff. For a five-parameter read tool with strong annotations, this is close to complete; only pagination/cap behavior is unstated.

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 80%, so the baseline is 3; the description earns an extra point by explaining the intent of subjectKind (groups in the same directory vs both kinds, with a default) and by defining query as part of the name or an INN. limit, offset, and database are left entirely to the schema.

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?

The description names a specific verb and resource ('Ищет контрагентов по части названия или по ИНН') and immediately clarifies the scope switch: subjectKind=group searches groups in the same directory, all returns both, and the default is counterparties only. An agent can distinguish this search tool from get_counterparty, get_reconciliation, and the write.* siblings without opening any schema.

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?

It states when to use group/all versus the default, gives two concrete invocation examples ('найди контрагента Ромашка', 'контрагент с ИНН 7701234567'), and tells the agent to feed the returned Ref_Key into get_counterparty and settlement history. What is missing is an explicit statement of when not to use this tool (e.g. exact-ref lookup) or what to do on ambiguous multi-database results.

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