Skip to main content
Glama

telegram_folders

Read-onlyIdempotent

Retrieve Telegram folder IDs, names, emojis, and rules that define which chats are included or excluded. Use this to inspect how folders are configured or to find the folder ID for filtering chats.

Instructions

Returns each folder's id, name, emoji and rules: which chats it names, which it excludes, and which whole categories it admits (contacts, non-contacts, groups, channels, bots) or withholds (muted, read, archived). Use when the user asks how their chat folders are set up or which folder id to filter by. Do not use this to put a chat into a folder; that is telegram_plan_folder_add, and listing the chats in one folder is telegram_chats with a folder argument. The ids are what chats and inbox take as folder. A folder is the user's own sorting, not a permission: chats this configuration may not enumerate stay hidden inside it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountNoAccount label to use. Omit when exactly one account is configured.
include_privateNoAlso name the one-to-one conversations a folder contains (requires safety.read.enumerate_dms).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover the read-only/idempotent safety profile, yet the description adds non-obvious behavioral context: folder ids are the values `chats` and `inbox` accept as `folder`, and folders are the user's own sorting rather than a permission, so chats that the configuration may not enumerate stay hidden. That caveat materially affects how an agent interprets the result.

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 return shape, then usage, routing, and a caveat. Dense and largely waste-free, though the final permission sentence is a long clause that 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?

No output schema exists, and the description compensates by describing the returned structure (id, name, emoji, rules) and what the rules distinguish. Combined with the annotations, an agent has everything needed to call and interpret this tool.

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 the `account` and `include_private` semantics (including the safety.read.enumerate_dms requirement) are already documented in the schema. The description adds cross-tool context for the returned ids but no additional meaning for either parameter, so the baseline 3 applies.

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 ('Returns each folder's id, name, emoji and rules') and enumerates what the rules cover. It explicitly distinguishes itself from telegram_plan_folder_add and telegram_chats as alternatives, so an agent can pick it correctly without opening any 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?

Gives a concrete when-to-use trigger ('user asks how their chat folders are set up or which folder id to filter by') and an explicit when-not-to-use with the named replacement tools for both the write path and the per-folder listing path. Nothing is left to inference.

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