Skip to main content
Glama
Automata MCP

Automata MCP

List Telegram chats

list-telegram-chats
Read-onlyIdempotent

List synced Telegram chats—private chats, groups, supergroups, and channels—by recent activity, returning each chatId for other Telegram tools and supporting pagination when more chats exist.

Instructions

[Telegram] List synced Telegram chats — private chats, groups, supergroups and channels — most recently active first, with the chatId needed by the other Telegram tools. A chatId is a string of digits (negative for groups and channels); always pass it back as a string. If this connector is scoped to specific chats, only those are listed. This answers one page: when hasMore is true there are more chats, so walk nextPage before concluding a chat does not exist. Each chat carries history: when history.complete is false, older messages in that chat were not synced. A chat with migratedTo is a group that was upgraded; its newer messages are in the chat that names.

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": "list-telegram-chats"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo1-based page, most recently active first. Walk this up while `hasMore` is true.
limitNoHow many chats to return in this page

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, non-destructive), it discloses that results may be restricted by connector scoping, that a single call returns one page with `hasMore`/`nextPage`, that `history.complete=false` means older messages were never synced, and that `migratedTo` marks an upgraded group. These are non-obvious behaviors an agent could not infer from the schema or annotations.

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 purpose and scope, then the `chatId` format rule, then pagination and data-quality caveats — every sentence carries usable information. It is dense and somewhat long, but nothing reads as 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?

There is no output schema, so the description carries the burden of explaining return values, and it does: `chatId` typing and sign convention, `hasMore`/`nextPage` pagination, per-chat `history` completeness, and `migratedTo` migration. An agent has everything needed to call and interpret it correctly.

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 the two parameters are already documented in the schema, including the 'most recently active first' ordering and the pagination walk. The description reinforces but does not materially extend parameter meaning beyond that baseline.

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?

States a specific verb and resource ('List synced Telegram chats') plus the exact scope covered (private chats, groups, supergroups, channels), ordered most-recently-active first. The added note that it supplies the `chatId` needed by other Telegram tools cleanly separates it from read/search siblings.

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?

Gives clear when-to-use context: call this to obtain the `chatId` that other Telegram tools require, and paginate via `nextPage` before concluding a chat does not exist. It does not name a specific alternative sibling (e.g. search-telegram-messages) or state when-not to use it, which keeps it just short of a 5.

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