Skip to main content
Glama
Telegram Context MCP

Telegram Context MCP

by egor-fedorov

list_folders

Read-only

Lists permitted Telegram folders and visible peers, with an optional case-insensitive name filter to find relevant chats quickly.

Instructions

List permitted folders and visible peers. Optional case-insensitive name substring.

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

Input Schema

NameRequiredDescriptionDefault
queryNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered. The description adds scoping context ("permitted" implies access-filtered results, "visible peers" implies the result set extends beyond the caller) and notes case-insensitive matching, but leaves open what a peer is and whether results are paginated.

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?

Two short sentences, front-loaded with the core action and followed by the parameter note. Nearly zero waste; the only cost is that the terse phrasing "visible peers" creates ambiguity rather than saving space.

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?

For a single-optional-parameter read tool with no output schema, the definition covers invocation adequately but not results: it does not say what a returned entry contains or how "peers" relate to folders. Given the low complexity this is close to sufficient, but the undefined term leaves a real gap.

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 coverage is 0%, so the description must carry the single parameter, and it does: "optional case-insensitive name substring" tells the agent the filter is optional, matches on names, and ignores case. It could go further by saying whether the substring matches folder names, peer names, or both.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"List permitted folders" gives a specific verb and resource, but "visible peers" is undefined and the description never distinguishes this tool from siblings like list_chats or list_topics. An agent knows roughly what it does but not exactly what a "peer" is or whether this covers anything beyond folders.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no exclusions, and no mention of alternatives. The agent must infer from the name alone that this is the folder-enumeration path rather than the chat/topic listing paths offered by siblings.

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