Skip to main content
Glama

Delete a webhook

cometchat_delete_webhook
Destructive

Permanently deletes a webhook, so CometChat stops sending its events. Not read back: confirm with cometchat_list_webhooks.

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": {
      "app_id": "<app_id>",
      "webhook_id": "<webhook_id>"
    },
    "name": "cometchat_delete_webhook"
  }
}

Input Schema

NameRequiredDescriptionDefault
app_idYesThe CometChat App ID (from cometchat_list_apps).
confirmNoSet true only after the user has explicitly agreed to this change. On a local connection that is enough; on the hosted server this change needs approval_code from the user's browser instead, and confirm is ignored.
webhook_idYesWebhook id
approval_codeNoThe code the user got after approving this exact change in their browser. Only ever from the user; never make one up or reuse one for different arguments.

Output Schema

NameRequiredDescriptionDefault
app_idYesApp ID
deletedYesAlways true when the call succeeds
webhook_idYesWebhook id

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=true, so the safety profile is covered. The description still earns credit for adding what annotations cannot express: that the deletion is permanent, that it stops event delivery, and critically that the state cannot be read back afterwards, which forces an explicit list_webhooks check. It does not restate the approval/permission flow, but the schema covers that thoroughly.

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, front-loaded with the action and its consequence, then the verification constraint. Nothing is redundant and no sentence could be dropped without losing 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?

With an output schema present and annotations plus a fully documented parameter schema, the description only needs to convey consequence and irreversibility, which it does. The one small gap is that the browser-approval requirement for the hosted server is left entirely to the schema, so an agent skimming only the description might assume a plain confirm is sufficient.

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 description coverage is 100% and all four parameters (app_id, webhook_id, confirm, approval_code) are documented in-schema, including the confirm-vs-approval_code distinction. The description adds no parameter-level meaning of its own, so the baseline of 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?

"Permanently deletes a webhook" gives a specific verb and resource, and the clause "so CometChat stops sending its events" states the operational consequence rather than restating the name. It does not need to disambiguate from the other delete_* siblings since the resource is explicit, but it also gives no selection criteria beyond the operation itself.

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

Usage Guidelines3/5

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

The sentence "Not read back: confirm with cometchat_list_webhooks" is real post-action guidance and names the right sibling for verification, which is more than most delete tools offer. However, there is no when-to-use vs when-not guidance (e.g. delete vs. leave a webhook in place), and the preconditions for executing the deletion live only in the schema's confirm/approval_code descriptions.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.