Skip to main content
Glama
telegram-mcp

telegram-mcp

by adsqwui

tg_list_chats

Read-only

List Telegram chats in native order—pinned first, then recent activity—with filters for chat type, unread status, and title or @username queries.

Instructions

List dialogs in Telegram's order (pinned first, then newest activity): id, title, type, unread count, last message.

kind filters by type ("private" includes Saved Messages). query matches the title or @username.

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_list_chats"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoall
limitNo
queryNo
unread_onlyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds genuinely useful behavior beyond that: result ordering and the returned field set. It omits pagination/limit semantics and the fact that 'kind=private' includes Saved Messages is mentioned but unread_only behavior is not explained.

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?

Front-loaded with the listing purpose and ordering, then filter semantics in a short second paragraph. Tight overall, no filler; the trailing newline aside, only limit/unread_only are left unaddressed.

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?

No output schema exists, so the field list in the description is necessary and present. However a read tool with an openWorldHint and four optional params should explain the limit parameter and what unread_only does, which it does not.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/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 and it largely does: it explains kind (including the private/Saved Messages nuance) and query (matches title or @username). limit and unread_only remain unexplained beyond their names and types.

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 (list dialogs) and describes the ordering semantics (pinned first, then newest activity) plus the returned fields. It distinguishes itself from siblings like tg_read_messages or tg_chat_info by being a listing tool, though it does not explicitly name an alternative.

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?

Usage is implied rather than stated: the ordering and the kind/query filters suggest this is the entry point for discovering chats before reading or acting. There is no explicit when-to-use or when-not-to-use guidance, and no mention of siblings such as tg_chat_info for detail.

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