Skip to main content
Glama

Disconnect a Telegram bot

disconnect_bot
DestructiveIdempotent

Disconnect the existing bot webhook. Never returns the bot token. Returns awaiting_confirmation and an approval_url: the owner must approve these exact parameters in Cormak, then retry with the SAME request_id. No work starts before approval. Reuse request_id on retries.

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": {
      "request_id": "<request_id>",
      "project_id": "<project_id>"
    },
    "name": "disconnect_bot"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYes
request_idYesStable UUID for this exact operation. Reuse on retries. Never change it to retry an unknown result.

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?

Annotations already flag destructive=true, idempotent=true and openWorldHint=true, but the description adds details that are not in any structured field: no work starts before approval, an approval_url is returned, the bot token is never returned, and the retry must reuse the identical request_id. That is exactly the extra behavioral context expected of a destructive mutation.

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?

The description is front-loaded with the action and the security guarantee, then the return values, then the retry contract. Every sentence carries distinct information: the token-exclusion note, the approval gate and the idempotency instruction could each cause a wrong call if dropped.

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?

With no output schema present, the description carries the return-value burden and does so for the first response (awaiting_confirmation, approval_url). It is slightly incomplete in not stating what the approved retry returns or how a rejection surfaces, which leaves a small gap for an approval-gated destructive tool.

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 coverage is 50%, with request_id already documented as a stable UUID to reuse. The description reinforces that lifecycle ('reuse request_id on retries', 'SAME request_id'), which is genuinely useful, but it says nothing about project_id beyond what its UUID format implies. With half the parameters undocumented in the schema, this is a baseline 3 rather than full compensation.

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 opening sentence gives a specific verb and resource ('Disconnect the existing bot webhook'), which is unambiguous about the mutation being performed. It does not name a sibling such as sync_bot or attach_agent_bot for contrast, so it stops short of 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?

The description explains the required workflow step-by-step: call, receive awaiting_confirmation plus approval_url, owner approves, then retry with the same request_id. That is clear operational context. It does not, however, state when to prefer this over sync_bot or attach_agent_bot, so exclusions and alternatives are absent.

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.