Skip to main content
Glama
telegram-tools

telegram-tools

by craft-agent

Remove chats from the sync list

telegram_sync_remove
DestructiveIdempotent

Remove chats from the sync list to stop mirroring their messages and delete locally held copies, while leaving Telegram unchanged.

Instructions

Takes supergroups and channels off the sync list, so the mirror stops keeping their messages and deletes the ones it holds, with their earlier versions. 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 that is not on the list is reported under absent, 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_remove"
  }
}

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 removed chats and how to read them.
sizeYesHow many chats the sync list holds now.
limitYesThe most chats the sync list holds: 30.
absentYesThe chats that were not on the sync list; nothing changed for them.
removedYesThe chats taken off the sync list; their mirrored messages and earlier versions are gone.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A4.2/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: the deletion is local-only (nothing changes at Telegram), earlier message versions are removed too, the call is all-or-nothing, and re-running is harmless because unlisted chats surface under `absent`. This corroborates idempotentHint and destructiveHint rather than contradicting them. It stops short of describing pagination or confirmation prompts, which keeps it at a 4.

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-loads the effect and the local-only scope, then layers constraints and failure handling; nearly every sentence carries operational weight. A few statements (the 30-chat cap, the ids-not-names rule) duplicate the schema and could be trimmed.

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?

For a destructive, all-or-nothing mutation with an output schema, the description covers preconditions, eligibility rules, idempotency, and the recovery path for an `uncertain` result. Nothing material an agent needs before invoking it 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 coverage is 100%, so both parameters are already documented in the schema, and the description largely restates the id-only rule and the 30-chat cap. It does add one piece of meaning beyond the schema — that any invalid chat causes the entire call to be refused — but does not elaborate on the optional `account` parameter.

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 — taking supergroups and channels off the sync list — and immediately clarifies the effect (mirror stops keeping messages and deletes held copies). This clearly distinguishes it from telegram_sync_add and from the read 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 concrete context: chats must come from `telegram_chat_read` method `list`, the sync service must be running, and after an `uncertain` outcome the agent should consult `telegram_sync_read` before retrying. It does not explicitly contrast against a sibling that might otherwise seem applicable, but the routing guidance it does give is actionable.

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