Skip to main content
Glama

Connect a Telegram channel

connect_agent_channel
DestructiveIdempotent

Verify an existing Telegram channel through the backend and attach it to your agent. Bot permissions are checked. 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>",
      "agent_id": "<agent_id>",
      "channel": "<channel>"
    },
    "name": "connect_agent_channel"
  }
}

Input Schema

NameRequiredDescriptionDefault
channelYes
agent_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

B3.3/5.0
Behavior3/5

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

Adds real context beyond annotations: bot permission checks occur, nothing proceeds before owner approval, and an approval_url is returned. But annotations set destructiveHint=true and the description never says what existing channel attachment is overwritten or how to recover, which is the key behavioral risk here.

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?

Four short, front-loaded sentences; the approval gate and retry rule are stated before the details. Minor redundancy: reuse of request_id is stated twice and is already in the schema description.

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

Completeness2/5

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

For an open-world, destructive, three-required-parameter mutation with no output schema, the definition leaves important gaps: accepted channel formats, effect on a previously attached channel, and post-approval failure behavior. The return-shape disclosure is helpful but does not compensate for these, which makes it hard to call correctly with confidence.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 33% (only request_id is documented) yet the description adds no semantics for channel or agent_id. It does not say whether channel takes an @handle, a URL, a numeric ID, or what agent_id format aside from the UUID in the 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?

States a specific verb and resource: 'Verify an existing Telegram channel through the backend and attach it to your agent.' That clearly separates it from bot-attachment siblings, but it never names which sibling to use instead when the target is a bot rather than a channel.

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?

Gives the operational sequence: call, receive awaiting_confirmation plus an approval_url, owner approves in Cormak, then retry with the same request_id. It does not cover when to choose this over connect_domain or attach_agent_bot, or what to do when approval is rejected or expires.

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.