Skip to main content
Glama
grammy-mcp
by louietyj

deleteWebhook

Destructive

Remove the bot's webhook integration to switch back to polling with getUpdates; optionally drop pending updates to start clean.

Instructions

Use this method to remove webhook integration if you decide to switch back to getUpdates. Returns True on success.

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": "deleteWebhook"
  }
}

Input Schema

NameRequiredDescriptionDefault
drop_pending_updatesNoPass True to drop all pending updates

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and openWorldHint=true, so the safety profile is covered. The description adds a return-value contract ('Returns True on success') and the polling-switch rationale, but says nothing about whether pending updates are retained by default, auth/bot-token requirements, or rate limits.

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?

Two short sentences, zero waste, with the purpose and the motivating scenario front-loaded before the return note.

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 single optional-parameter destructive tool whose annotations already flag destructiveness, the description plus schema cover what an agent needs to call it. The remaining gap is the default treatment of pending updates and any idempotency note, which the destructive annotation partially compensates for.

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?

With one parameter at 100% schema coverage, the schema already explains drop_pending_updates fully. The description adds no further meaning to that flag, so baseline 3 applies.

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: 'remove webhook integration', plus the scenario that motivates it. It distinguishes itself from getUpdates by framing itself as the way to go back to polling, though it never names setWebhook or getWebhookInfo as the adjacent siblings.

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 a concrete when-to-use condition: 'if you decide to switch back to getUpdates'. No explicit when-not guidance or prerequisite (e.g. that a webhook must exist first), but the usage context is clear rather than merely implied.

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