Skip to main content
Glama
grammy-mcp
by louietyj

createForumTopic

Create a topic in a Telegram forum supergroup or private chat by specifying chat ID and topic name; returns the new ForumTopic object for further bot actions.

Instructions

Use this method to create a topic in a forum supergroup chat or a private chat with a user. In the case of a supergroup chat the bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator right. Returns information about the created topic as a ForumTopic object.

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": {
      "chat_id": "<chat_id>",
      "name": "<name>"
    },
    "name": "createForumTopic"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesTopic name, 1-128 characters
chat_idYesUnique identifier for the target chat or username of the target supergroup in the format `@username`
icon_colorNoColor of the topic icon in RGB format. Currently, must be one of 7322096 (0x6FB9F0), 16766590 (0xFFD67E), 13338331 (0xCB86DB), 9367192 (0x8EEE98), 16749490 (0xFF93B2), or 16478047 (0xFB6F5F).
icon_custom_emoji_idNoUnique identifier of the custom emoji shown as the topic icon. Use getForumTopicIconStickers to get all allowed custom emoji identifiers.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only, non-destructive, open-world call, so the bar is lower, and the description adds real value on top: permission requirements and the fact that a ForumTopic object is returned. It says nothing about failure modes such as an existing topic name or a chat that is not in forum mode.

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?

Three sentences, front-loaded with the action, then the permission constraint, then the return type. No filler, though the final sentence mostly restates what a caller would expect.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a four-parameter creation tool with no output schema, it covers the action, the eligibility constraint, and the return type so the agent knows what comes back. The private-chat case is mentioned but not elaborated, and error behavior is left out.

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 chat_id, name, icon_color, and icon_custom_emoji_id are already documented, and the description contributes no additional parameter meaning. 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?

States a specific verb and resource ("create a topic") and scopes it to forum supergroup chats or private chats with a user. This clearly separates it from close/reopen/delete/edit topic siblings, though it does not name them explicitly.

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 preconditions for use: the bot must be an administrator and must hold the can_manage_topics right in a supergroup. It stops short of naming alternatives or stating when not to use it, so it falls just under the top score.

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

Deploy Server

Other Tools