Home / Servers / Cloudflare API / replace_webhook

Replace a webhook

An MCP tool from the Cloudflare API server, hosted on mcp.hjlabs.in.

Replace a webhook Replace all details for the given webhook ID. [PUT /accounts/{account_id}/realtime/kit/{app_id}/webhooks/{webhook_id}]

Name on the gateway: cloudflare_api__replace_webhook · may change things.

Parameters

NameTypeDescription
account_id requiredstringaccount_id parameter
app_id requiredstringapp_id parameter
webhook_id requiredstringwebhook_id parameter
enabledbooleanSet whether or not the webhook should be active…
events requiredarrayEvents that this webhook will get triggered by
name requiredstringName of the webhook
url requiredstringURL this webhook will send events to

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "cloudflare_api__replace_webhook",
  "arguments": {
    "account_id": "…",
    "app_id": "…",
    "webhook_id": "…",
    "events": [],
    "name": "…",
    "url": "…"
  }
}

Or connect the Cloudflare API server directly, which lists 3,127 tools including this one:

Run in your terminal
claude mcp add --transport http hj-cloudflare-api https://mcp.hjlabs.in/mcp/cloudflare-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the replace a webhook tool with account_id set to ….

More from Cloudflare API