Skip to main content
Glama

action

Dispatch Telegram bridge actions by listing categories, exploring sub-paths, or executing full paths like session/list. Manage sessions, messages, profiles, and more.

Instructions

Universal action dispatcher. Omit type to list all categories. Pass a category (e.g. session) to list sub-paths. Pass a full path (e.g. session/list) to execute. Use help(topic: 'action') for full documentation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeNoAction path to dispatch (e.g. 'session/list', 'profile/voice'). Omit to list all categories. Pass a category name to list sub-paths.
tokenNoSession token from action(type: 'session/start'). Token-optional paths: `session/start`, `session/reconnect`, and `session/list` (unauthenticated probe returns SIDs only). Omitting `type` (discovery/category listing) also requires no token. All other paths require a valid token.
nameNosession/start, session/reconnect: Human-friendly session name.
colorNosession/start: Preferred color square emoji hint. session/rename: Color to apply (must be a valid palette emoji).
refreshNosession/start: When true, collapses first-boot, reconnect-of-live, and re-establish-after-drop into a single call. Pass alongside token to reclaim a live session (returns reused: true). When no session exists for the name, creates a new one (returns reused: false). Omit or false for strict first-boot semantics (current default). activity/file/create: When true, wipes any existing registration for this session (deletes file if TMCP-owned) then proceeds with a fresh create. Response includes replaced: true when a prior registration was wiped, replaced: false when there was none. Omit or false to preserve existing ALREADY_REGISTERED behavior.
new_nameNosession/rename: New alphanumeric name for the session.
voiceNoprofile/voice: Voice name to set. Pass empty string to clear.
speedNoprofile/voice: TTS speed multiplier (0.25–4.0).
message_idNomessage/edit, message/delete, message/pin, react, message/get, checklist/update, progress/update, acknowledge: Target message ID.
textNomessage/edit: New text content. reminder/set: Reminder message text. animation/cancel: Replacement text. confirm/*: Prompt shown to user.
keyboardNomessage/edit: Inline keyboard rows. Pass null to remove all buttons.
parse_modeNomessage/edit, animation/cancel: Parse mode for text. 'Markdown' (default) — standard markdown auto-converted; 'MarkdownV2' — raw Telegram MarkdownV2 pass-through (special chars must be manually escaped); 'HTML' — HTML tags.Markdown
disable_notificationNomessage/pin: Pin without notifying members.
unpinNomessage/pin: If true, unpin instead of pin.
emojiNoreact: Emoji or semantic alias (e.g. 'thinking', 'done'). Omit to remove reaction.
is_bigNoreact: Use big animation (permanent reactions only).
temporaryNoreact: Auto-reverts reaction on next outbound action or timeout.
restore_emojiNoreact: Emoji/alias to revert to when temporary reaction expires.
timeout_secondsNoreact: Deadline before auto-restore fires. show-typing: Duration (1–300s, default 20). confirm/*: Seconds to wait for user response before timing out (default 600).
ignore_pendingNoconfirm/*: Proceed even if there are unread pending updates (skips the pending check).
callback_query_idNoacknowledge: ID from the callback_query update.
show_alertNoacknowledge: Show as dialog alert instead of toast.
urlNoacknowledge: URL to open in the user's browser (for games).
cache_timeNoacknowledge: Seconds the result may be cached client-side.
remove_keyboardNoacknowledge: Clear the inline keyboard on message_id after answering. Returns MISSING_MESSAGE_ID error if message_id is absent.
target_sidNomessage/route: Session ID to route the message to. session/rename: SID of session to rename (governor only).
topicNoprofile/topic: Short label to prepend to all outbound messages. Pass empty string to clear.
keyNoprofile/save, profile/load: Profile key (bare name e.g. 'Overseer').
voice_speedNoprofile/import: TTS playback speed multiplier (0.25–4.0).
animation_defaultNoprofile/import: Default animation frame sequence.
animation_presetsNoprofile/import: Named animation presets.
remindersNoprofile/import: Reminders to register for this session. Supports time, startup, last_sent, last_received, and schedule (cron-based) triggers.
name_tagNoname-tag/set or profile/import: Custom name tag string. Replaces the auto-default (<color> <name>). No newlines. Max 64 chars.
cronNoreminder/schedule: 5-field cron expression (minute hour day month weekday). Example: "0 9 * * *" fires at 9am daily. 6-field expressions are rejected.
tzNoreminder/schedule: Timezone for the cron expression. Accepts IANA names (e.g. "America/New_York") or aliases: PST/PDT→America/Los_Angeles, MST/MDT→America/Denver, CST/CDT→America/Chicago, EST/EDT→America/New_York, UTC→UTC, GMT→Etc/GMT. Default: "UTC".
triggerNoreminder/set: When to fire: 'time' (default), 'startup', 'last_sent' (fires after last send), or 'last_received' (fires after last inbound).
modeNoreminder/set (last_received only): which inbound events reset the clock. "all" (default) = operator + DMs; "operator" = operator only.
only_if_silentNoreminder/set (last_received only): when true, suppresses the reminder if the agent has already replied since the last qualifying inbound.
delay_secondsNoreminder/set: Seconds to wait before reminder becomes active (default 0).
recurringNoreminder/set: Re-arm after firing (default false).
idNoreminder/set: Optional ID for dedup. reminder/cancel, reminder/disable, reminder/enable, reminder/sleep: Reminder ID to operate on.
untilNoreminder/sleep: ISO-8601 datetime after which the reminder resumes firing (e.g. "2026-06-01T09:00:00Z").
timeoutNoprofile/dequeue-default: Default dequeue timeout in seconds (0–3600).
msNoprofile/kick-lockout: Post-kick lockout window in milliseconds (1000–3600000). Omit to get current value. profile/kick-debounce (deprecated): Accepted range 1000–600000; use profile/kick-lockout instead.
framesNoanimation/default: Animation frames to set as default or register as preset.
presetNoreact: Named reaction preset (e.g. "processing"). animation/default: Named preset key for registration or recall.
resetNoanimation/default: Reset to built-in default animation.
enabledNologging/toggle: true to enable logging, false to disable.
countNomessage/history: Number of events to return (default 20, max 50).
before_idNomessage/history: Return events older than this event ID (page backwards).
versionNomessage/get: Version (-1 = current, 0 = original, 1+ = edit history).
filenameNolog/get: Log filename to read. log/delete: Log filename to delete. Omit log/get to list files.
categoryNolog/debug: Filter to a single debug category. Valid values: session, route, queue, cascade, dm, animation, tool, health.
sinceNolog/debug: Only return entries with id > since (cursor-based pagination).
enableNolog/debug: Toggle debug logging on/off.
session_idNolog/trace: Filter to a specific session ID (governor-only for other sessions).
toolNolog/trace: Filter trace entries to a specific tool name.
since_tsNolog/trace: Only return trace entries at or after this ISO timestamp.
cancelNoshow-typing: If true, immediately stop the typing indicator.
ticketNoapprove: One-time approval ticket delivered to the governor via dequeue when the session requested approval.
forceNoshutdown: Bypass the pending-message safety guard. session/close: Force-close the last remaining session (bypasses the last-session guard).
reasonNoshutdown/warn: Optional reason for the restart.
wait_secondsNoshutdown/warn: Optional estimated wait time in seconds before restart.
file_idNotranscribe: Telegram file_id of voice message. download: Telegram file_id to download.
file_nameNodownload: Suggested file name.
mime_typeNodownload: MIME type hint from the message.
titleNochecklist/update: Bold heading for the status block.
stepsNochecklist/update: Ordered list of steps with their current statuses.
percentNoprogress/update: Progress percentage (0–100).
subtextNoprogress/update: Optional italicized detail line below the bar.
widthNoprogress/update: Bar width in characters (default 10).
commandsNocommands/set: Slash commands to register. Pass [] to clear the menu.
scopeNocommands/set: "chat" scopes commands to active chat (default). "default" sets globally.
file_pathNoactivity/file/create, activity/file/edit: Absolute path to the activity file. Omit to let TMCP generate one in data/activity/.
child_tokenNosession/revoke-child: Dispatch token of the child session to revoke (the `token` field returned by session/spawn-child). Either the spawning parent OR the child itself may call this. Self-revocation is the preferred exit path: sub-agent emits EXIT_STATUS: then calls this with its own dispatch token.
child_sidNochild/forward: SID of the target child session to forward a message to.
messageNochild/forward: Text message to inject into the child session's dequeue queue as an operator-forwarded message.
event_typeNochild/notify: Caller-defined event type (max 64 chars, alphanumeric + '/' + '_').
payloadNochild/notify: Optional JSON-serializable object delivered verbatim to the parent session.
child_capabilityNosession/spawn-child: Capability level for the spawned child session (default: 'gather').
Behavior3/5

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

Without annotations, the description carries full burden. It explains the three modes and token requirements but does not disclose error handling, rate limits, side effects (e.g., destructive actions like shutdown), or return value structure. This limits transparency.

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 concise (two sentences plus a reference) and front-loaded with the core concept. No wasted words, making it efficient for agent parsing.

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

Completeness3/5

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

Given the complexity (80 parameters, no output schema, no annotations), the description provides sufficient context for basic usage but relies on 'help(topic: action)' for full documentation. It lacks details on output, error cases, and state changes, making it somewhat incomplete.

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 100%, so parameters are already described. The description adds a high-level structure (modes) but does not elaborate on individual parameters beyond the schema. Baseline 3 is appropriate.

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?

The description clearly defines the tool as a universal action dispatcher with three distinct modes: listing all categories (omit type), listing sub-paths (pass category), and executing actions (pass full path). This specificity differentiates it from sibling tools like dequeue, help, and send.

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?

The description explicitly states when to use each mode and references help(topic: 'action') for full documentation, providing a clear alternative. It also implicitly excludes other tools by focusing on action dispatching.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/electrified-cortex/Telegram-Bridge-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server