Skip to main content
Glama

Сообщения диалога

get_chat_messages
Read-only

Сообщения одного диалога, новые сверху. direction: in - написал клиент, out - от вас.

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": {
      "chat_id": "<chat_id>"
    },
    "name": "get_chat_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
chat_idYesid диалога (chat_...)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

readOnlyHint already tells the agent this is a safe read, and the description goes beyond that by disclosing result ordering ('новые сверху') and decoding the in/out semantics of the direction field returned in messages, which matters because there is no output schema. It stops short of covering pagination behavior or whether limit is the only paging control.

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?

Two compact sentences, scoping stated first and the ordering fact front-loaded, with no filler. The second sentence is slightly ambiguous, though: it explains 'direction' without saying that direction is a field on returned messages rather than an input, which could momentarily mislead an agent scanning for parameters.

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?

For a two-parameter read tool with readOnlyHint and no output schema, the description covers scope, ordering, and the meaning of the returned direction values, which is the right kind of compensation. It is still incomplete on pagination and on the limit parameter, and it leaves the single-message and cross-dialog siblings unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 50%: chat_id carries its own format note ('chat_...') in the schema, while limit is documented only by default/min/max with no textual meaning. The description adds no parameter guidance at all — it never mentions limit, its default of 20, its 200 cap, or paging — so it does not compensate for the coverage gap.

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 verb and resource: messages belonging to a single dialog ('Сообщения одного диалога'), plus the ordering convention 'новые сверху'. The scope word 'одного' hints at a distinction from a broader list_messages sibling, but that alternative is never named, so differentiation is left implicit.

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: an agent can infer this is the tool for reading the history of one conversation, since chat_id is required. There is no explicit when-to-use versus get_message (single message) or list_messages (presumably cross-dialog), and no stated prerequisites or exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources