Skip to main content
Glama
prabchevski

Telegram Search MCP

by prabchevski

Get bounded Telegram message context

telegram_get_context
Read-onlyIdempotent

Retrieve up to five text messages before and after a specified message in a Telegram chat to understand the surrounding conversation context.

Instructions

Fetch at most five text messages on each side of an anchor.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
afterNo
beforeNo
chat_idYes
message_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
countYes
messagesYes
anchor_chat_idYes
trust_boundaryNo
anchor_message_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.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=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds useful behavioral context: it limits to text messages, caps at five per side, and centers on an anchor message. It does not mention pagination or what happens if fewer messages exist, but the bounded nature is clearly disclosed.

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?

The description is a single sentence with no wasted words. It front-loads the core action and scope, and every word earns its place.

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?

Given the tool's simplicity, the annotations cover safety, and the output schema exists, the description is mostly complete. It could mention that only text messages are returned (which it does) and clarify the behavior of before/after defaults, but the core information needed to call the tool correctly is present.

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 0%, so the description must compensate. It explains the 'before' and 'after' concept implicitly ('on each side of an anchor') and the cap of five, which maps to the maximum constraints in the schema. However, it does not explicitly explain the 'before' and 'after' parameters or the chat_id/message_id requirements beyond what the schema already shows. The description adds some meaning but not enough to fully compensate for zero schema coverage.

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 verb ('Fetch') and resource ('bounded Telegram message context'), and clarifies the scope ('at most five text messages on each side of an anchor'). It is clear about what the tool does, though it does not explicitly differentiate from siblings like telegram_get_message or telegram_search_messages.

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 description implies usage: it fetches surrounding context around an anchor message, which is distinct from searching or fetching a single message. However, it does not explicitly state when to use this tool versus alternatives, nor does it mention any exclusions or prerequisites.

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