Skip to main content
Glama

telegram_chats

Read-onlyIdempotent

Lists your Telegram dialogs with unread counts and finds the chat_id for a title, so other operations can target the right chat.

Instructions

Returns the account's dialogs with unread counts, so a title can be turned into the chat_id every other operation needs. Use when the user wants a chat list, unread counts, or a chat id from a title. Do not use this to read messages; call telegram_chat_read once the chat is known, or telegram_search to find text. Private conversations are excluded unless safety.read.enumerate_dms permits them.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoRows to return.
folderNoOnly chats in this Telegram folder — its id, or the name shown in the app. Filters the listing; it never widens it.
searchNoCase-insensitive substring of the chat title or @username.
accountNoAccount label to use. Omit when exactly one account is configured.
archivedNoList the archive instead of the main list.
include_privateNoInclude one-to-one conversations (requires safety.read.enumerate_dms).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotentHint/non-destructive, so the safety profile is covered. The description adds genuinely useful behavior beyond that: private DMs are silently excluded unless safety.read.enumerate_dms permits them, and the result includes unread counts. It does not mention pagination or ordering, but the limit parameter is already documented in the schema.

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?

Four compact sentences, front-loaded with the core behavior, then usage, then the exclusion rule. Every sentence carries routing or constraint information; there is no restatement of the name or filler.

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

Completeness5/5

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

With no output schema, the description correctly summarizes what comes back (dialogs with unread counts and the chat_id), states the permission-gated exclusion, and delegates detail to the fully documented schema. Nothing an agent needs to call this correctly is missing.

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 100%, so all six parameters are already described in the schema (folder narrowing, search substring, archived toggle, include_private gate). The description's only parameter-adjacent content is the private-conversation exclusion, which mirrors include_private rather than adding syntax or semantics. Baseline 3 applies when the schema does the heavy lifting.

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 states a specific verb and resource — returning the account's dialogs with unread counts — and gives the concrete downstream purpose (turning a title into the chat_id other operations need). It explicitly distinguishes itself from telegram_chat_read and telegram_search, so an agent can route without opening a schema.

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

Usage Guidelines5/5

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

It gives explicit when-to-use ('chat list, unread counts, or a chat id from a title'), explicit when-not-to-use ('Do not use this to read messages'), and names the two alternative tools with the condition that selects each. It also states the safety prerequisite for private conversations.

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