Skip to main content
Glama

save_folder

Idempotent

Create or update Telegram chat folders, reorder them, or toggle folder tags. Use it to organize chats and manage folder ordering and tag visibility.

Instructions

Create or update a Telegram chat folder, reorder folders (action=reorder), or toggle folder tags (action=toggle_tags).

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": "save_folder"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoFolder ID (`>= 2` for custom Telegram folders, required when `action` is `save`).
botsNoInclude bots (for `save`).
orderNoOrdered list of folder IDs (required when `action` is `reorder`).
titleNoDisplay title of the chat folder (required when `action` is `save`).
actionNoFolder operation (`save` default, `reorder`, or `toggle_tags`).
groupsNoInclude groups and supergroups (for `save`).
contactsNoInclude contacts (for `save`).
broadcastsNoInclude broadcast channels (for `save`).
non_contactsNoInclude non-contacts (for `save`).
tags_enabledNoEnable or disable folder tags (required when `action` is `toggle_tags`).
exclude_peersNoExcluded chat references (IDs or `@username`, for `save`).
include_peersNoIncluded chat references (IDs or `@username`, for `save`).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare non-read-only, non-destructive, idempotent, and open-world behavior, so the safety profile is covered. The description adds the mode breakdown but omits what 'save' does to fields not supplied (replace vs merge), permission requirements, and folder-count limits — meaningful gaps for a 12-parameter mutation tool.

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?

A single front-loaded sentence with no filler, and the three modes are grouped clearly. The parentheticals are functional rather than redundant, though the sentence is dense for a tool with three distinct operations.

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?

No output schema exists, so return behavior need not be explained, and the 100%-covered schema carries parameter detail. Still, for a 12-parameter tool spanning three modes, the description leaves unclear what a save does to unspecified fields and how reorder interacts with existing ordering.

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 schema already documents each parameter's mode applicability and the id/title/order requirements. The description's action-value callouts largely restate the enum description rather than adding syntax or format detail, so baseline 3 applies.

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

Purpose4/5

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

The description uses specific verbs and a concrete resource ('Create or update a Telegram chat folder') and enumerates three distinct modes keyed to action values. It does not name the read counterpart (get_folders) or any sibling, so an agent must infer which tool retrieves folders.

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

Usage Guidelines3/5

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

The parenthetical action=reorder and action=toggle_tags mappings imply when each mode applies, but there is no explicit when-to-use guidance, no prerequisites (e.g., folder must already exist to reorder), and no statement about when to prefer get_folders instead.

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