Skip to main content
Glama
Official Porkbun MCP Server

Official Porkbun MCP Server

Create Webhook

create_webhook

Register a publicly reachable HTTPS endpoint to receive signed Porkbun event payloads, so your application can react to subscribed events.

Instructions

Register a webhook endpoint. Porkbun will POST a signed JSON payload to url whenever a subscribed event occurs. Returns the new endpoint including its secret — store it securely; it's used to verify the X-Porkbun-Signature header (HMAC-SHA256 over {timestamp}.{rawBody}). url must be a publicly reachable HTTPS endpoint: https:// on port 443, no credentials embedded in the URL, and a hostname that resolves to a public internet address. Private, loopback (including tricks like 127.0.0.1.sslip.io), link-local, CGNAT and reserved addresses are rejected with INVALID_WEBHOOK_URL — do not try to point this at localhost or an internal host. For local development use a public HTTPS tunnel (ngrok, Cloudflare Tunnel) or a sandbox key with sandbox_trigger_webhook. A hostname that does not resolve yet is accepted so you can register before the receiver is deployed, but the rules are re-checked before every delivery. Omit events (or pass ['*']) to subscribe to all event types; you can also pass prefix wildcards like dns.*.

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

Input Schema

NameRequiredDescriptionDefault
urlYesPublicly reachable HTTPS URL Porkbun will POST event payloads to. Port 443 only; the hostname must resolve to a public internet address (private/loopback/reserved targets are rejected).
eventsNoEvent types to subscribe to, e.g. `['domain.registered','dns.*']`. Omit or use `['*']` for all events. Call get_webhook_event_types for the catalog.
dry_runNoIf true, validate only — returns wouldSucceed and changes nothing.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.65.19
    • addedInput schema / properties / dry_run
      Added value: +{
      +  "description": "If true, validate only — returns wouldSucceed and changes nothing.",
      +  "type": "boolean"
      +}
  2. Addedv0.39.4

TDQS

A4.8/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: it discloses that the response includes a `secret` used for HMAC-SHA256 signature verification of the `X-Porkbun-Signature` header over `{timestamp}.{rawBody}`. It also documents URL validation rules, the `INVALID_WEBHOOK_URL` failure mode, the accept-then-recheck behavior for unresolvable hostnames, and that rules are re-validated on every delivery. Nothing here conflicts with readOnlyHint=false/destructiveHint=false/idempotentHint=false.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose, then signature/secret handling, then URL constraints — a sensible order for a security-sensitive tool. It is dense but nearly every sentence carries actionable constraint information; the only near-redundancy is the emphatic 'do not try to point this at localhost' restating the preceding address enumeration.

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 compensates by describing the return value (endpoint object including the secret) and the signature verification contract. Combined with the 100%-documented input schema and annotations, an agent has everything needed to call this correctly; only `dry_run` and API-key prerequisites are left implicit.

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 the baseline is 3; the description earns an extra point by explaining prefix wildcard syntax (`dns.*`) and restating the omit-means-all semantics in operational terms. It does not mention `dry_run` at all, so one of the three parameters is left entirely to the schema.

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?

Opens with a specific verb and resource ('Register a webhook endpoint') and immediately clarifies the delivery mechanism (signed JSON POST on subscribed events). It also names the sibling used for local development (sandbox_trigger_webhook), so an agent can tell it apart from the trigger/test siblings without opening their schemas.

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

Usage Guidelines5/5

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

Gives an explicit when-not ('do not try to point this at localhost or an internal host') and a concrete alternative for that case: a public HTTPS tunnel or sandbox_trigger_webhook with a sandbox key. The `events` section also states the default behavior (omit or `['*']` for all) plus the prefix-wildcard option, removing guesswork.

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

Deploy Server

Other Tools