Skip to main content
Glama

Connect Discord, Slack, Telegram, and more

manage_webhook
Destructive

Create, update, test, or delete webhooks that send Minecraft server events to Discord, Slack, Telegram, Teams, or Google Chat, and list available Telegram chats.

Instructions

Connect the server to a chat: “send deaths to my Discord”, “post joins to Telegram in Russian”. create makes one and sends a test message. update changes it, or pauses it. test works once per webhook every 10 seconds. telegram_chats lists the chats a Telegram bot can write to. list_webhooks with options has a guide to getting each service's URL or bot token. These are secrets: ask the user to paste them, never invent or repeat them. A webhook sees no coordinates and no chat unless permissions widen that, up to this token's own. Webhooks in config.yml change only there.

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": {
      "action": "<action>"
    },
    "name": "manage_webhook"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoFor create, but not telegram
nameNoFor create, a new one such as discord-deaths
actionYes
chatIdNoTelegram's
formatNoFor create
topicsNoEvent ids, such as ["player.death"], ["player.*"], or ["*"] for every notable one
enabledNofalse pauses it
botTokenNoTelegram's
languageNoEnglish by default
messagesNoOwn words by message key, such as {"player.death": "RIP: {message}"}
permissionsNoSuch as ["chat:read"]

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changedv5.0.0
    • removedInput schema / properties / action / description
      Removed value: -"What to do"
    • changedInput schema / properties / botToken / description
      Previous value: -"For create and telegram_chats, the Telegram bot's token"New value: +"Telegram's"
    • changedInput schema / properties / chatId / description
      Previous value: -"For create with telegram"New value: +"Telegram's"
    • changedInput schema / properties / enabled / description
      Previous value: -"For update: false pauses it"New value: +"false pauses it"
    • changedInput schema / properties / language / description
      Previous value: -"Chat messages' language; English by default"New value: +"English by default"
    • changedInput schema / properties / messages / description
      Previous value: -"Its own words by message key, such as {\"player.death\": \"RIP: {message}\"}; list_webhooks with options shows the keys and placeholders"New value: +"Own words by message key, such as {\"player.death\": \"RIP: {message}\"}"
    • changedInput schema / properties / name / description
      Previous value: -"The webhook; for create, a new name such as discord-deaths"New value: +"For create, a new one such as discord-deaths"
    • changedInput schema / properties / permissions / description
      Previous value: -"What it may see, such as [\"events:read\", \"chat:read\"]; default: no coordinates, no chat"New value: +"Such as [\"chat:read\"]"
    • changedInput schema / properties / topics / description
      Previous value: -"Such as [\"player.death\"], [\"player.*\"], or [\"*\"]"New value: +"Event ids, such as [\"player.death\"], [\"player.*\"], or [\"*\"] for every notable one"
    • changedInput schema / properties / url / description
      Previous value: -"For create, every format but telegram"New value: +"For create, but not telegram"
  2. Changed1 schema field changedv4.2.1
    • addedInput schema / properties / action / description
      Added value: +"What to do"
  3. Addedv4.2.0

TDQS

A4.5/5.0
Behavior5/5

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

Adds substantial behavior beyond annotations: create emits a test message, test is rate-limited to once per webhook per 10 seconds, URL/bot tokens are secrets the agent must have the user paste rather than invent or echo, and a webhook's visibility is bounded by its permissions and the calling token. That is exactly the operational context an agent needs for a destructive mutation tool.

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-loads the purpose and then packs each action plus the key caveats into short clauses with no filler. A few lines are terse to the point of ambiguity ('up to this token's own', 'change only there'), which costs a little clarity but not much length.

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 11-parameter, destructive, no-output-schema tool it covers secrets handling, rate limits, permission scoping, and the config.yml constraint. It stops short of describing what 'update' can change, whether 'delete' is recoverable, or what a successful call returns, which leaves a few gaps on a destructive tool.

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 already 91%, so the baseline is 3; the description still adds meaning by explaining that 'telegram_chats' exists to resolve chatId and that 'permissions' widens what a webhook can see (no coordinates or chat by default). It leaves the semantics of 'messages', 'topics', and 'enabled' entirely to the schema.

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?

States a concrete verb and resource ('Connect the server to a chat') and then enumerates the action semantics (create/update/test/telegram_chats) in the same breath. It also separates this tool from the sibling 'list_webhooks' by naming what that one does instead (the option guide). An agent can tell what this does without reading the schema.

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 realistic triggering utterances ('send deaths to my Discord', 'post joins to Telegram in Russian') and one explicit exclusion: webhooks defined in config.yml can only be changed there. It does not spell out when to pick 'update' versus 'create' versus 'delete', so the routing between actions is only partly inferred.

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