Skip to main content
Glama
iamalexzatcepin

Telegram MCP

get_message_context

Retrieve a Telegram message and its surrounding context by providing chat and message IDs, with adjustable before/after counts.

Instructions

Read one message and bounded surrounding context.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chatYes
afterNo
beforeNo
accountNo
message_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.3.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. 'Read' implies a safe read, but it never explains what 'bounded' means (the schema defaults of before=5/after=5 are never surfaced) or what happens at message boundaries.

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 efficient sentence with the core action front-loaded. No filler, though the extreme brevity is itself a source of underspecification.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 5-parameter tool with no annotations and no output schema, the description is too thin. The meaning of required 'chat', optional 'account', and the default window sizes are all left to inference.

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 description coverage is 0% across 5 parameters, so the description must compensate and does not. It hints at message_id and before/after via 'message and bounded surrounding context', but leaves chat, account, and the integer window sizes entirely unexplained.

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?

States a specific verb+resource: reading one message plus bounded surrounding context. This is clearer than a generic 'get', but it does not distinguish itself from siblings like read_chat or read_forum_topic, which presumably also surface messages.

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?

No when-to-use guidance and no alternatives named. The agent cannot tell from the description when to reach for this versus read_chat, get_unread, or search_chat.

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