Skip to main content
Glama

Create a webhook

cometchat_create_webhook
Destructive

Creates a webhook that POSTs events, including message content, to an HTTPS URL, for trigger ids from cometchat_list_webhook_triggers. Prefer Basic Auth. Returns the triggers actually attached.

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>",
      "id": "<id>",
      "name": "<name>",
      "url": "<url>",
      "triggers": "<triggers>"
    },
    "name": "cometchat_create_webhook"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesUnique webhook id, e.g. 'backend-sync' (letters, numbers, - and _)
urlYesHTTPS endpoint that receives the events
nameYesDisplay name
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.
passwordNoBasic Auth password (optional)
triggersYesTrigger ids from cometchat_list_webhook_triggers, e.g. message_sent
usernameNoBasic Auth username (optional)
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.
retry_on_failureNoRetry failed deliveries (default true)

Output Schema

NameRequiredDescriptionDefault
idYesWebhook id
urlYesEndpoint URL
app_idYesApp ID
triggersYesTriggers attached, as read back from CometChat
basic_authYesBasic Auth on
failed_triggersNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already flag destructive, open-world, non-idempotent behavior, so the bar is lower. The description still adds real substance: it discloses that message content is egressed to an external URL (a privacy-relevant trait) and that the return reports only the triggers actually attached, hinting at partial-success semantics not obvious from the schema.

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?

Three tightly packed sentences with the core behavior, auth preference, and return semantics front-loaded and no filler. Every clause carries information the agent can act on.

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 10-parameter mutation tool with an output schema and rich annotations, the description covers purpose, external data egress, auth preference, and return nuance. The approval_code/confirm interplay is left to the schema, which documents it thoroughly, so the remaining gap is minor.

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 baseline is 3; the description goes slightly beyond by recommending Basic Auth, which gives purpose to the optional username/password pair, and by clarifying that triggers must come from the sibling listing tool. It does not elaborate on retry_on_failure or the approval flow, so it is not a full 5.

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?

Uses a specific verb and resource ("Creates a webhook") and immediately states the mechanism: POSTs events to an HTTPS URL, with trigger ids sourced from cometchat_list_webhook_triggers. This distinctively separates it from delete_webhook and from the trigger-listing sibling without the agent needing to open 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 Guidelines3/5

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

Gives a prerequisite pointer (get trigger ids from cometchat_list_webhook_triggers) and an auth preference ("Prefer Basic Auth"), which is useful setup guidance. However, there is no explicit when-to-use vs. when-not, and no mention of alternatives or of when a webhook is the wrong choice over other integration tools.

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.