Skip to main content
Glama

Диалоги и их контрагенты

counterparties_dialogs
Read-onlyIdempotent

Manages dialog-counterparty links: without a dialog ID, lists available dialogs for linking; with a dialog ID, returns the linked counterparty or indicates no link. Requires chat.view permission.

Instructions

Без dialog_id показывает доступные диалоги для связывания с карточкой. С dialog_id возвращает связанного контрагента либо сообщает, что связи нет. Нужны права chat.view.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
caseNoДело: название или идентификатор. Если не указать, берётся дело по умолчанию, иначе последнее открытое в панели.
searchNo
dialog_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds real context beyond that: the required chat.view permission and the fact that a missing link is reported rather than erroring.

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, each earning its place, with the conditional modes front-loaded ahead of the permission note. Zero waste.

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?

No output schema, but the description explains what each mode returns, including the negative case (no link). For a read-only lookup with idempotent/non-destructive annotations, this is nearly complete; only the search/case parameters go unexplained.

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 only 33%—dialog_id has no description in the schema, and the description usefully explains its role as the mode switch. But 'case' and 'search' carry no meaning in the description, leaving one undocumented param and one only partially clarified by the schema.

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 states a specific dual-mode behavior: without dialog_id it lists dialogs available for linking, with dialog_id it returns the linked counterparty. This is a clear verb+resource, though it never names a sibling tool to differentiate against (e.g. counterparties_link, counterparties_get, dialogs_list).

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?

The with/without dialog_id split implies when each mode applies, which is useful conditional guidance. However, it gives no explicit when-to-use versus alternatives, no exclusions, and does not route the agent to the sibling tools that perform the actual linking.

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