Skip to main content
Glama

b24_telegram_configure

Configure which Bitrix24 events are forwarded to Telegram by setting presets or filters, target chat, and enabling or resetting overrides without editing files.

Instructions

Change what gets forwarded to Telegram, without editing files.

Use this to help someone set forwarding up: ask what they want to hear about, translate it into a filter (or pick a preset), set it, then call b24_telegram_test so they see it working.

The bot token is NOT settable here - a credential belongs in .env (BITRIX_TELEGRAM_TOKEN), not in a chat transcript.

Args: events: preset name or filter string. 'nothing' silences forwarding while keeping the rest of the configuration. chat_id: where to post. Find it by messaging the bot and reading getUpdates, or by adding the bot to a channel as administrator. reset: drop overrides so the .env values apply again.

Returns: JSON: the resulting configuration, plus "changed": [...] listing what this call actually modified.

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

Input Schema

NameRequiredDescriptionDefault
resetNoClear all overrides and fall back to the .env settings.
eventsNoWhich events to forward. A preset name ('work', 'tasks', 'crm', 'everything', 'nothing') or a filter string like 'tasks/*,-im/*'.
chat_idNoTarget chat: numeric user id, channel id (-100...), or @channelname.
enabledNoTurn forwarding on or off without losing the rest of the settings.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only say this is a non-read-only, non-destructive, open-world mutation. The description adds real context beyond that: the bot token is deliberately not accepted here and belongs in .env, reset drops overrides so .env values reapply, and the response reports a 'changed' list of what was actually modified. It stops short of saying whether changes affect a running bot immediately or what permissions are required.

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?

Front-loaded with purpose, then usage, then a caveat about credentials, then Args/Returns. Every section is purposeful, though the Args and Returns blocks substantially restate the schema and output schema, adding length without much new information.

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 4-param mutation with an output schema, the description covers the workflow, the credential constraint, and the reset/'nothing' semantics well. The only gap is that `enabled` - a reasonably common toggle - is absent from the prose, so an agent reading only the description might miss that forwarding can be paused without losing settings.

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, and the description earns an extra point by explaining chat_id discovery (message the bot and read getUpdates, or add it to a channel as administrator) and the exact meaning of 'nothing' for events. The `enabled` parameter is never mentioned in prose, so meaning added is not uniform across all four params.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource: 'Change what gets forwarded to Telegram, without editing files.' The 'without editing files' clause immediately separates it from a config-file edit path, and the body names b24_telegram_test as the companion tool, so an agent can place it among siblings without opening schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit workflow: ask what the user wants to hear about, translate to a filter or preset, set it, then call b24_telegram_test to demonstrate. It also names the alternative by implication (test for verification) and documents 'nothing' as the silencing case, so when-to-use is fully covered.

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