Skip to main content
Glama

b24_telegram_test

Tests Telegram bot and chat configuration, or previews which recent events the current filter would forward without sending messages. Use it to validate delivery before enabling forwarding.

Instructions

Verify the bot and chat work, or preview what the filter would forward.

preview_only=true answers "would I get spammed?" without sending anything: it replays recent captured events through the current filter and shows the messages that would have been produced.

Returns: JSON on success: {"sent": true, "bot": {...}, "chat": {...}}. With preview_only: {"would_forward": , "of_recent": , "sample": ["..."]}. On failure the Telegram error is returned verbatim - 400 usually means a wrong chat_id, 403 means the bot was never added to that chat.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "b24_telegram_test"
  }
}

Input Schema

NameRequiredDescriptionDefault
messageNoCustom text. Omitted: sends a short check-in message.
preview_onlyNoDo not send; show which recent events the current filter would forward.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare that this is not read-only and touches an open world, and the description builds on that by stating that a real message is sent unless preview_only is set, that preview replays recent captured events through the current filter, and by mapping Telegram error codes (400 = wrong chat_id, 403 = bot never added) to causes. That error mapping is genuine value beyond the structured fields. It stops short of saying whether sending affects filter state or what 'recent' means in terms of window size.

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 purpose is front-loaded in a single sentence, followed by the preview mode and then the returns, which is a sensible order. The returns block is somewhat redundant because an output schema already exists, though the embedded error-code interpretation is information that would not appear in a schema, so it largely earns its space.

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 an outward-facing action tool with two optional parameters, full schema coverage, an output schema, and side-effect annotations, the description covers the sending behaviour, the preview alternative, and failure modes. What is missing is only marginal: the size of the 'recent' event window used by preview and whether repeated sends are rate-limited.

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 100%, so the baseline is 3, but the description goes further by explaining the mechanism behind preview_only ('replays recent captured events through the current filter and shows the messages that would have been produced'), which is more than the schema's one-line note. The message parameter's default behaviour is only echoed from the schema, so no extra credit there.

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 names two concrete capabilities: verifying that the Telegram bot/chat work, and previewing what the filter would forward. That is a specific verb+resource statement an agent can act on. It does not, however, distinguish itself from nearby siblings such as b24_telegram_status, b24_telegram_configure, or b24_test_connection, so an agent still has to guess which 'check' tool to pick.

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 preview branch is given an explicit decision rule and a motivation ('would I get spammed?' without sending anything), which is exactly the kind of when-to-use framing that helps selection. The gaps are the absence of any exclusion or pointer to the sibling tools that also verify Telegram configuration, so the routing is clear within the tool but not across the toolset.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools