Skip to main content
Glama

Start agent account Telegram bot creation

stack_start_account_telegram

Start giving the agent account its own Telegram bot without BotFather or a pasted token. Returns create_url, a link the account's OWNER opens in Telegram: they see a window to create the bot (its name and @username are pre-filled and can be changed in the name, but the @username must stay as suggested) and confirm it there. Only that confirmation creates the bot: STACK's own Telegram bot receives the new bot and its token, stores the token sealed like any pasted one and sets its webhook, and nothing passes through this conversation. The link is single-use and lasts 10 minutes (expires_at); asking again replaces it. Tell the owner to open the link; then read the bot with stack_get_account_telegram (not found until they have confirmed). suggested_name is only a suggestion for the bot's display name. A conflict error when the agent already has a bot; NOT_CONFIGURED when this deployment has no Telegram manager bot, in which case the owner connects a bot with the token connect link (stack_create_connect_link, connect kind telegram_bot). Operator only (owner or admin); an agent session is refused.

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": {
      "account_id": "<account_id>"
    },
    "name": "stack_start_account_telegram"
  }
}

Input Schema

NameRequiredDescriptionDefault
account_idYesAgent account id (acct_*)
suggested_nameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false; the description goes much further by disclosing that the token is received by STACK's own bot, stored sealed, and has its webhook set, and that nothing passes through the conversation. It also documents the single-use 10-minute expiry and replacement on re-ask, plus the conflict and NOT_CONFIGURED error behaviors.

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?

The core action and the owner-confirmation flow are front-loaded, and every clause carries operational information. It is a dense single block with long sentences, which makes it slightly harder to scan than a bulleted or multi-paragraph layout would be.

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

Completeness5/5

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

With no output schema, the description still explains the returned create_url and expires_at, the lifecycle of the link, the required follow-up read, and both failure modes. Nothing an agent needs in order to call it and act on the result is missing.

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 only 50%, so the description must compensate for suggested_name, and it does: it explains the value only pre-fills the bot's display name, can be edited by the owner, and that the @username must remain as suggested. account_id is already documented in the schema and is not restated beyond the operator framing.

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

Purpose5/5

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

The first sentence states a specific verb and resource: start creating a Telegram bot for an agent account without BotFather or a pasted token. It distinguishes itself from siblings by naming stack_get_account_telegram for reading the result and stack_create_connect_link for the no-manager-bot fallback.

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

Usage Guidelines5/5

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

It gives explicit sequencing (call this, tell the owner to open the link, then read the bot with stack_get_account_telegram, which returns not-found until confirmation), names the fallback when the deployment lacks a Telegram manager bot, and states the audience restriction: operator only, agent sessions refused.

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.