Skip to main content
Glama
1C OData MCP

1C OData MCP

Карточка контрагента

read.counterparty.get_counterparty
Read-only

Retrieves a complete counterparty card by Ref_Key (GUID), including INN/KPP, names and code. Use it after finding a counterparty to pull full details for that single record.

Instructions

Возвращает полную карточку контрагента по его Ref_Key: реквизиты (ИНН/КПП), наименования, код. 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_counterparty"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYesRef_Key контрагента (GUID)
databaseNoИмя базы 1С из list_databases. Без указания — база по умолчанию; если баз несколько и неясно какая, спросите пользователя.

Output Schema

NameRequiredDescriptionDefault
innNo
kppNo
refYes
codeNo
nameYes
fullNameNo
isFolderNo
parentRefNo
dataVersionNo
deletionMarkNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.2/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, so the read-only, external-data profile is covered. The description adds that a "полная карточка" (complete record) is returned, but does not disclose error behavior for an unknown Ref_Key or the implications of the default-database fallback beyond what the schema already states.

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?

Two short sentences, with the core operation stated first and the key-sourcing hint second. No filler, no restatement of the title.

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 single required parameter plus optional database are fully documented in the schema. What remains unaddressed is failure handling for an invalid or unknown Ref_Key.

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 the baseline would be 3, but the description contributes provenance for the ref parameter — that it is a Ref_Key sourced from find_counterparty — which the schema does not say. The database parameter's default behavior is handled entirely by the schema, so nothing further is added there.

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 ("Возвращает полную карточку контрагента по его Ref_Key") and enumerates what comes back (реквизиты ИНН/КПП, наименования, код). It is clearly a master-data lookup, distinguishable from sibling tools like get_customer_history or get_reconciliation that report activity rather than attributes.

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 tells the agent where the required key comes from ("Ref_Key берётся из find_counterparty"), which is a concrete usage precondition linking it to the correct sibling. It stops short of stating when not to use it or what to do if the counterparty is not found.

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