Skip to main content
Glama

HTML/CSS to Image API

Create a Webhook

create_webhook

Creates a webhook that sends the selected organization events to an HTTPS endpoint. Subscribing to an event requires read access to its resource; api_key events cannot be subscribed to through MCP. Creating an enabled webhook sends a webhook_test delivery to the endpoint; test_event_id in the result identifies it. Returns the configuration without secret parameter values or the signing secret.

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

Input Schema

NameRequiredDescriptionDefault
contentYesWebhook name, endpoint URL, subscribed events, and delivery parameters. Omit disabled or set it to false to enable the webhook.

Output Schema

NameRequiredDescriptionDefault
itemNoOperation result. Check success before using this value.
errorNoError details when the operation failed; null on success.
successNoWhether the operation succeeded. If false, inspect error before retrying.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / content / properties / events / items / enum
      Previous value: -[
      -  "webhook_test",
      -  "template_created",
      -  "template_updated",
      -  "template_deleted",
      -  "image_deleted",
      -  "image_stored",
      -  "proxy_created",
      -  "proxy_updated",
      -  "proxy_deleted",
      -  "storage_destination_created",
      -  "storage_destination_updated",
      -  "storage_destination_deleted",
      -  "og_config_created",
      -  "og_config_updated",
      -  "og_config_deleted",
      -  "api_key_created",
      -  "api_key_updated",
      -  "api_key_deleted",
      -  "organization_plan_changed",
      -  "organization_usage_reset",
      -  "organization_usage_alert"
      -]New value: +[
      +  "webhook_test",
      +  "template_created",
      +  "template_updated",
      +  "template_deleted",
      +  "image_deleted",
      +  "image_stored",
      +  "proxy_created",
      +  "proxy_updated",
      +  "proxy_deleted",
      +  "storage_destination_created",
      +  "storage_destination_updated",
      +  "storage_destination_deleted",
      +  "og_config_created",
      +  "og_config_updated",
      +  "og_config_deleted",
      +  "api_key_created",
      +  "api_key_updated",
      +  "api_key_deleted",
      +  "organization_plan_changed",
      +  "organization_usage_reset",
      +  "organization_usage_alert",
      +  "recording_stored",
      +  "recording_deleted",
      +  "recording_failed"
      +]
    • changedOutput schema / properties / item / properties / events / items / enum
      Previous value: -[
      -  "webhook_test",
      -  "template_created",
      -  "template_updated",
      -  "template_deleted",
      -  "image_deleted",
      -  "image_stored",
      -  "proxy_created",
      -  "proxy_updated",
      -  "proxy_deleted",
      -  "storage_destination_created",
      -  "storage_destination_updated",
      -  "storage_destination_deleted",
      -  "og_config_created",
      -  "og_config_updated",
      -  "og_config_deleted",
      -  "api_key_created",
      -  "api_key_updated",
      -  "api_key_deleted",
      -  "organization_plan_changed",
      -  "organization_usage_reset",
      -  "organization_usage_alert"
      -]New value: +[
      +  "webhook_test",
      +  "template_created",
      +  "template_updated",
      +  "template_deleted",
      +  "image_deleted",
      +  "image_stored",
      +  "proxy_created",
      +  "proxy_updated",
      +  "proxy_deleted",
      +  "storage_destination_created",
      +  "storage_destination_updated",
      +  "storage_destination_deleted",
      +  "og_config_created",
      +  "og_config_updated",
      +  "og_config_deleted",
      +  "api_key_created",
      +  "api_key_updated",
      +  "api_key_deleted",
      +  "organization_plan_changed",
      +  "organization_usage_reset",
      +  "organization_usage_alert",
      +  "recording_stored",
      +  "recording_deleted",
      +  "recording_failed"
      +]
  2. Changed2 schema fields changed
    • changedInput schema / properties / content / properties / signing_enabled / description
      Previous value: -"Whether to sign deliveries with this webhook's signing secret. The secret is generated when the webhook is created and can be copied from the dashboard. Defaults to false."New value: +"Whether to sign deliveries with this webhook's signing secret. The secret is generated when the webhook is created, returned only in the REST API create response, and can also be copied from the dashboard. Defaults to false."
    • addedOutput schema / properties / item / properties / signing_secret
      Added value: +{
      +  "description": "Signing secret for verifying deliveries. Returned only in the REST API create response, even when signing is disabled. Store it securely; updates, reads, lists, and MCP responses omit this field.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  3. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare the write/non-idempotent/open-world profile, and the description adds context beyond them: creating an enabled webhook fires a webhook_test delivery identified by test_event_id, and the response omits secret parameter values and the signing secret. It stops short of covering failure behavior or whether the test delivery failure rolls back creation.

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 tight sentences, front-loaded with purpose, then constraints, then side effects and return redaction. No filler and no repetition of schema content.

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?

For a create tool with a deeply nested schema and an output schema available, the description covers the remaining gaps an agent needs: permission prerequisite, the automatic test delivery, and secret redaction. Return values are delegated to the output schema as allowed.

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, but the description adds meaning the schema does not: api_key events cannot be subscribed to through MCP, and secret values/signing secret are never returned. That clarifies the intent behind the events array and the signing_enabled/secret flags rather than restating them.

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?

The opening sentence gives a specific verb and resource ('Creates a webhook') plus the scope of what it does (sends selected organization events to an HTTPS endpoint). It cleanly distinguishes creation from the update/delete/get siblings by name and effect, though it never explicitly contrasts with them.

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 description supplies real prerequisites (read access to the event's resource, api_key events not subscribable via MCP) but does not frame when to choose this over alternatives such as update_webhook or send_webhook_test_event. Usage is implied rather than routed.

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.