Skip to main content
Glama

Disconnect agent account Telegram bot

stack_disconnect_account_telegram
Destructive

Take the agent account's Telegram bot away: STACK removes the bot's webhook at Telegram and stops receiving and sending for it. A bot created through STACK's Telegram bot also has its token revoked at Telegram; one you made at BotFather stays yours. Operator only (owner or admin).

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_disconnect_account_telegram"
  }
}

Input Schema

NameRequiredDescriptionDefault
account_idYesAgent account id (acct_*)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the destructiveHint annotation, the description discloses exactly what is destroyed and what survives: the webhook is removed at Telegram and messaging stops, but the bot token is only revoked if STACK created the bot, while a BotFather bot's token remains the caller's. That provenance-dependent outcome is precisely the kind of behavioral nuance annotations cannot express.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short clauses with zero filler: the effect comes first, the token nuance second, the permission requirement last. Every sentence carries information the agent needs.

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 destructive, single-param, no-output-schema tool with annotations present, the description covers effect, irreversibility implications, token provenance, and authorization. It is only marginally incomplete in not stating what happens to stored chat records or whether the account itself is affected.

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% and the single account_id param is documented in the schema as 'acct_*', so the schema does the heavy lifting. The description adds no format or constraint detail about the identifier, which matches the baseline 3 for a fully covered single-param schema.

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 gives a concrete verb and resource ('Take the agent account's Telegram bot away') and describes the mechanism (webhook removal, stop of send/receive), which makes the operation unmistakable. It does not explicitly route against the nearest sibling (stack_disconnect_service) or name the inverse (stack_start_account_telegram), so it stops short of full sibling differentiation.

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?

'Operator only (owner or admin)' supplies a real precondition an agent can check before calling, which is more than most mutation tools offer. There is no explicit when-not-to-use or pointer to an alternative disconnect path, so guidance is clear context rather than full routing.

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.