Skip to main content
Glama

Connect a Telegram bot to the agent

connect_telegram_bot

The user creates a bot with @BotFather, gets the HTTP API token, and passes it here. After that, all messages to the bot are answered by the agent.

Input Schema

NameRequiredDescriptionDefault
idYes
bot_tokenYesTelegram Bot API token from @BotFather

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose the resulting behavior — all messages to the bot are answered by the agent — which is genuine value. But it omits permissions/auth requirements, idempotency or replacement semantics for an existing connection, and error behavior on an invalid token.

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 tight sentences that front-load the setup steps and end with the effect of connecting. No filler, though it could be slightly more explicit about the id parameter without extra length.

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 two-parameter mutation with no annotations and no output schema, the description covers the workflow and the post-connection behavior but leaves the 'id' parameter and the success/error outcome semantics unaddressed. Adequate but with clear gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 50%. The description's token guidance ('gets the HTTP API token, and passes it here') largely restates the schema's own 'Telegram Bot API token from @BotFather' description, and the required 'id' parameter is never explained in schema or description. Little net meaning is added.

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+resource (connect a Telegram bot) and describes the end-to-end setup flow, so the agent knows exactly what the call accomplishes. It is implicitly distinguished from siblings like disconnect_telegram_bot and get_telegram_bot_info, though it never names them.

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 description gives useful prerequisite context: the user must first create a bot with @BotFather and obtain the HTTP API token before calling. However, it never states when to use this versus disconnect_telegram_bot or get_telegram_bot_info, nor what happens if a bot is already connected.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources