Skip to main content
Glama

Connect Telegram

connect_telegram
Idempotent

Connect the bot to the owner's own Telegram bot so it answers there too. The owner creates a Telegram bot with @BotFather (send /newbot) and gives you the token it replies with. Needs the owner's email on the bot first.

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": {
      "bot_id": "<bot_id>",
      "token": "<token>"
    },
    "name": "connect_telegram"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYesToken from @BotFather, like 123456789:AAH…
bot_idYesThe bot id, like b_AbC123xyz789 (from create_bot or list_my_bots).
edit_keyNoThe bot's edit key, like bsk_… (from create_bot). Not needed when the user is signed in and the bot is in their account. Keep it private.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / bot_id / description
      Previous value: -"The bot id, like b_AbC123xyz789 (from create_bot)."New value: +"The bot id, like b_AbC123xyz789 (from create_bot or list_my_bots)."
    • changedInput schema / properties / edit_key / description
      Previous value: -"The bot's edit key, like bsk_… (from create_bot). Keep it private."New value: +"The bot's edit key, like bsk_… (from create_bot). Not needed when the user is signed in and the bot is in their account. Keep it private."
    • changedInput schema / required
      Previous value: -[
      -  "bot_id",
      -  "edit_key",
      -  "token"
      -]New value: +[
      +  "bot_id",
      +  "token"
      +]
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered by structured data. The description adds genuinely new behavioral context: the owner must be emailed on the bot first, and the flow requires the owner to create a bot via @BotFather and hand over the token. It does not describe failure modes or what the response looks like, keeping it at a 4.

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 short sentences, front-loaded with the purpose followed by the operational steps and the precondition. The phrase 'so it answers there too' is slightly informal but earns its place by clarifying the outcome. No meaningful waste.

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 one-shot setup tool with a fully described three-parameter schema and no output schema, the description covers purpose, provenance of the token, and the email precondition. The main remaining gap is what happens after a successful connect (return value or failure behavior), which is minor given the annotations and schema richness.

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 token, bot_id, and edit_key are each already documented in the schema, including provenance (create_bot, list_my_bots) and the signed-in exemption. The description only echoes that the token comes from @BotFather, adding no meaning beyond the schema. 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 states a specific verb and resource: connecting the bot to the owner's own Telegram bot so it answers there. That is far more specific than the title restatement and is distinguishable from siblings like chat_with_bot or create_bot. It stops short of explicitly naming a sibling alternative, so it is a 4 rather than a 5.

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?

It gives clear context for when to use the tool (making the bot answer on Telegram) and a concrete prerequisite: the owner's email must already be on the bot. It does not articulate a when-not condition or point to an alternative tool, but the usage context is unambiguous.

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