Skip to main content
Glama

Create webhook subscription

create_webhook
Idempotent

Subscribe an HTTPS URL to one event type (REST Hooks style). anymail will POST a signed JSON payload to target_url whenever the event happens in this workspace. Idempotent: subscribing the same (event, target_url) pair again returns the existing subscription. The URL must be public HTTPS (no private addresses, no credentials in the URL). Returns the subscription id needed by delete_webhook.

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": {
      "event": "<event>",
      "target_url": "<target_url>"
    },
    "name": "create_webhook"
  }
}

Input Schema

NameRequiredDescriptionDefault
eventYesEvent to subscribe to: new_reply (a prospect replied), positive_reply (reply classified as interested), bounce, unsubscribe, email_opened (weak signal: Apple Mail opens pixels itself), link_clicked, prospect_interested, prospect_maybe_later, prospect_not_interested, prospect_autoreplied (out-of-office), campaign_completed, campaign_paused, prospect_added, offer_opened (first visit to an offer), offer_returned (another visit), offer_read (read to the end, once per offer), offer_temperature_changed (offer moved between hot/warm/neutral/cooling/cold; metadata has from, to, reason).
target_urlYesPublic HTTPS URL that will receive the POST.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations cover the safety profile (idempotentHint, openWorldHint, non-destructive), and the description adds genuine behavior beyond them: outbound POST of a signed JSON payload, per-workspace event scoping, and the idempotent replay behavior of returning the existing subscription rather than erroring. It also discloses a real pre-call constraint — target_url must be public HTTPS with no private addresses or embedded credentials — which the agent could not infer 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?

Four short sentences, front-loaded with what the tool does, then delivery semantics, then idempotency, then URL constraints, then the return value. Every sentence carries information the agent needs and none restates the title.

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

Completeness5/5

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

With no output schema, the description closes the loop by stating the return value (subscription id) and its downstream use. For a two-parameter subscription tool, the delivery model, idempotency, URL constraints and return value are all covered; remaining unknowns (retry policy, signature verification) are 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% and the event enum is exhaustively documented in the schema, so the baseline is already 3. The description adds meaning beyond the schema for target_url by specifying the addressability and credential restrictions from "Public HTTPS URL", turning a vague format note into actionable validation criteria.

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 specific verb and resource ("Subscribe an HTTPS URL to one event type") plus the delivery mechanism (REST Hooks style, anymail will POST a signed JSON payload). It also differentiates from the sibling delete_webhook by noting the returned subscription id is what delete_webhook needs, so the agent can place the tool without opening either 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?

Clear context for calling it: one event type per subscription, scoped to "this workspace", idempotent on (event, target_url), and the id feeds delete_webhook. It stops short of explicit when-not guidance — e.g. whether to prefer a broader subscription or how many webhooks a workspace may hold — but there is no competing create alternative among the siblings.

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.