Skip to main content
Glama
LoneVertex

Telegram MCP — Next Generation

Mark Messages in Chat as Read

mark_as_read
Idempotent

Mark all messages in a chat as read, optionally up to a specific message ID, clearing the unread badge counter.

Instructions

Mark all messages or messages up to a specific ID in a chat as read. Mutation operation requiring TELEGRAM_SEND_ENABLED=true. Clears unread badge counter.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountNoOptional account label for multi-account environments. If omitted in single-mode, the default account is used. In multi-mode without an account, read-only tools fan out across all configured accounts.
chat_idYesTarget Telegram chat, group, supergroup, channel, or user identifier. Accepts numeric chat ID (e.g. -1001234567890 or 123456789), username (e.g. '@channel'), or phone number.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv4.2.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already carry readOnlyHint=false, idempotentHint=true, and destructiveHint=false. The description adds useful behavioral context beyond those hints: the environment prerequisite, the badge-clearing side effect, and the all-or-up-to-ID scope. No contradiction with the annotations was found.

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?

Three short sentences with no filler. The core operation is front-loaded, and each sentence adds a distinct piece of information: scope, mutation requirement, and side effect.

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 low-complexity mutation with rich annotations and an output schema, the description is mostly complete: it covers scope, prerequisites, and effect. The main gap is that 'up to a specific ID' is not representable through the current parameters, which leaves a small but real ambiguity.

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?

The schema already documents both parameters thoroughly, so the baseline is 3. The description's phrase 'up to a specific ID' adds semantic interest, but it is ambiguous because the input schema exposes no message_id parameter; an agent may not know how to express that threshold with the declared inputs.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the exact operation ('Mark...as read'), the resource ('messages in a chat'), and the scope ('all messages or messages up to a specific ID'). It is clearly distinct from the sibling tools, which handle sending, editing, deleting, pinning, or searching rather than changing read state.

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

Usage Guidelines4/5

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

The description provides clear usage context: it is a mutation, requires TELEGRAM_SEND_ENABLED=true, and clears the unread badge counter. It does not explicitly mention when not to use it or name an alternative, but no sibling tool directly competes with mark-as-read functionality.

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