Skip to main content
Glama
telegram-tools

telegram-tools

by craft-agent

Add chats to the sync list

telegram_sync_add
Idempotent

Adds supergroups and channels to the mirror sync list so their messages are retained. Use chat IDs from telegram_chat_read list; changes local sync state only, not Telegram.

Instructions

Puts supergroups and channels on the sync list, so the mirror keeps their messages from now on. Changes only the local mirror and the sync list; nothing changes at Telegram. Needs the sync service running. The list holds at most 30 chats. The whole call is refused when any chat cannot be listed: private chats, bots, basic groups and Saved Messages are always kept, and channels can be listed only with the channels setting on. Chats come as ids from telegram_chat_read method list, never names. A chat already on the list is reported under listed and left as it is, so repeating a call is harmless. If the call ends uncertain, check telegram_sync_read before trying again.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "chats": "<chats>"
    },
    "name": "telegram_sync_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
chatsYesThe chats to change, by id from `telegram_chat_read` method `list`, such as -1001234567890: 1 to 30 distinct ids. A name, username or phone number is not a chat.
accountNoThe account label; may be left out when only one account is logged in.

Output Schema

NameRequiredDescriptionDefault
noteYesWhat happens to the added chats and how to read them.
sizeYesHow many chats the sync list holds now.
addedYesThe chats now on the sync list that were not on it before; they are being seeded.
limitYesThe most chats the sync list holds: 30.
listedYesThe chats that were already on the sync list; nothing changed for them.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A4.4/5.0
Behavior5/5

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

Well beyond the annotations, it discloses that only the local mirror and sync list change, that the call is atomic (refused entirely if any chat cannot be listed), that private chats, bots, basic groups and Saved Messages are always kept, and that already-listed chats are reported under `listed` and left untouched, making repeats harmless. The uncertain-state retry guidance adds operational context the annotations cannot carry.

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?

The most decision-relevant facts—what it does, that it is local-only, and the service requirement—come first, and the failure and idempotency notes follow in a logical order. It is dense and nearly waste-free, though the enumeration of excluded chat types could be trimmed slightly.

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?

Given an output schema exists and return values need not be explained, the description still covers the atomicity, idempotency, capacity limit, and the `listed`/`uncertain` outcome states an agent must act on. Nothing needed to call this correctly under these annotations 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 both parameters are already documented, including the 1-30 distinct-id constraint and the 'never a name' rule. The description restates the id-source requirement but adds nothing about the `account` parameter beyond what the schema says, so it neither compensates nor detracts.

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 opens with a precise verb+resource: it puts supergroups and channels on the sync list for the mirror. That is immediately distinguishable from telegram_sync_read (inspection) and telegram_sync_remove (the inverse mutation), both of which appear among the 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?

It gives concrete preconditions (sync service running, channels setting on, id-limited to chats from telegram_chat_read method list) and a recovery path (check telegram_sync_read when the call ends uncertain). It does not explicitly name telegram_sync_remove as the tool to use for the opposite operation, so the routing is strong but not fully exhaustive.

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