Skip to main content
Glama
tgu-mcp
by rival-afk

read

Read-onlyIdempotent

Fetches a specified number of messages from a Telegram chat by name, @username, ID, or 'me', returning a JSON array for agent review.

Instructions

Прочитать последние сообщения чата. chat: часть имени/@юзер/id/'me'. JSON-массив сообщений.

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": "<chat>"
    },
    "name": "read"
  }
}

Input Schema

NameRequiredDescriptionDefault
chatYes
lastNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.1

TDQS

B3.4/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true and idempotentHint=true, so safety is covered. The description adds the return shape ('JSON-массив сообщений'), though an output schema already exists and makes this partly redundant, and it says nothing about limits, ordering, or pagination behavior.

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 short sentences with the core action front-loaded and the chat-format note immediately after. The trailing 'JSON-массив сообщений' adds little given the existing output schema, which is minor 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?

For a simple two-parameter read tool with an output schema and read-only annotations, the definition covers what is needed: the action, the accepted chat identifier formats, and the result type. Only the 'last' parameter's meaning is left implicit.

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 description coverage is 0%, so the description carries the burden, and it does explain the required 'chat' parameter accepts part of a name, an @username, an id, or 'me' — meaning the schema does not provide. The 'last' parameter is left unexplained, but its default of 10 makes the intent reasonably apparent.

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, 'Прочитать последние сообщения чата', so an agent knows it fetches recent chat messages. It does not differentiate from siblings like read_ids or search, but the purpose itself is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance: nothing says when to prefer this over read_ids, search, or mark_read, nor any prerequisite for reading a chat. The word 'последние' implies a recency-oriented read, but that is inference rather than stated guidance.

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