Skip to main content
Glama

Sync a Telegram bot

sync_bot
DestructiveIdempotent

Synchronize an existing bot with its saved project scenario and Telegram command menu. Enter BotFather tokens only in Cormak UI. 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": "sync_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 destructiveHint=true and idempotentHint=true, but the description goes well beyond them by disclosing the two-phase approval gate ('No work starts before approval'), the specific return signals (awaiting_confirmation, approval_url), and the exact idempotency contract for retries. That is material behavior an agent cannot infer from the annotation flags alone.

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?

It is dense and front-loaded, leading with what gets synced before the approval mechanics. There is redundancy: 'retry with the SAME request_id' and 'Reuse request_id on retries' convey the same rule in two sentences, one of which could be cut.

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, approval-gated mutation with no output schema, the description covers the gate, the return shape, and the retry contract, which is what an agent most needs. The remaining gap is the meaning of project_id and what 'synchronize' actually changes in Telegram, which stays vague.

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%: request_id is already documented in the schema, and the description largely restates the reuse rule rather than extending it. project_id is undocumented in both places, though 'saved project scenario' gives a weak hint about its role. Baseline 3 fits given the partial coverage gap.

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 uses a specific verb ('Synchronize') on a specific resource ('an existing bot') and names the two things being synced: the saved project scenario and the Telegram command menu. It implicitly separates itself from connect-style siblings by saying 'existing bot', but never names an alternative tool explicitly.

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 concrete operating context: BotFather tokens belong only in the Cormak UI, the call requires owner approval, and retries must reuse the same request_id. What's missing is an explicit statement of when to prefer this tool over bot-management siblings such as attach_agent_bot or disconnect_bot.

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.