Skip to main content
Glama
telegram-bot-testing-mcp
by SnimanOff

tg_read_messages

Read recent messages from the open Telegram chat as structured JSON, including text, direction, time, button grid, and media kind, to verify bot replies and rendered UI.

Instructions

Read the last messages of the open chat as structured JSON (id, direction, text, time, button grid, media kind).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "tg_read_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden: it does communicate that this is a read that returns structured JSON with a defined field set. However, it omits behaviorally important details such as what happens when no chat is open, whether reading affects message read-state, and whether results are newest-first or truncated by limit.

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?

A single front-loaded sentence with the scope stated before the field list, which is efficient. The parenthetical field enumeration is somewhat redundant with the existing output schema, which slightly dilutes the value of the sentence.

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?

An output schema exists, so return values do not need explaining, and the description correctly focuses on scope. Still, for a tool whose only real knob is `limit` and whose precondition is an open chat, both of those go unaddressed, leaving the definition minimally viable rather than complete.

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?

The single parameter `limit` has 0% schema description coverage and is never mentioned in the description; "last messages" only faintly implies that it bounds the newest-N window. With the one undocumented parameter, the description does not compensate for the schema 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?

Uses a specific verb ("Read") plus a scoped resource ("the last messages of the open chat") and enumerates the returned fields, so the agent knows exactly what it gets. It does not explicitly distinguish itself from tg_wait_for_message, which is the closest sibling, so it falls short of a 5.

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?

"of the open chat" implicitly states the precondition that a chat must already be opened, but that prerequisite is never spelled out and no alternative tool is named. There is no guidance on when to poll this versus tg_wait_for_message, leaving usage to inference.

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