Skip to main content
Glama
Official Porkbun MCP Server

Official Porkbun MCP Server

Create URL Forward

create_url_forward
Idempotent

Create a URL forwarding rule to redirect a domain, subdomain, or apex to a destination URL without running a web server.

Instructions

Add a URL forwarding rule for a domain. Forwards a subdomain (or apex if subdomain is empty/omitted) to an arbitrary destination URL. Useful for redirects without setting up a web server. Free.

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": {
      "domain": "<domain>",
      "location": "<location>",
      "type": "<type>",
      "includePath": "<includePath>",
      "wildcard": "<wildcard>"
    },
    "name": "create_url_forward"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYes`permanent` = HTTP 301; `temporary` = HTTP 302 (default); `masked` = loads the destination in a frame (URL masking). For a precise code — including a 307 temporary redirect — use `redirect_type`.
domainYesDomain to add the forward to, e.g. `example.com`
locationYesDestination URL to forward visitors to, e.g. `https://newsite.example.com`
wildcardYes`yes` also forwards all sub-subdomains; `no` forwards only the exact subdomain.
subdomainNoSubdomain prefix to forward. Empty/omitted = the apex (root domain). Examples: `www`, `shop`.
includePathYes`yes` appends the request URI path to the forward target; `no` always sends to the bare destination.
redirect_typeNoOptional exact redirect type; takes precedence over `type`. 301 = permanent, 302 or 307 = temporary (pass 307 here to get a 307), masked = URL masking. Omit to derive from `type` (temporary→302, permanent→301).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.39.4
    • addedInput schema / properties / redirect_type
      Added value: +{
      +  "description": "Optional exact redirect type; takes precedence over `type`. 301 = permanent, 302 or 307 = temporary (pass 307 here to get a 307), masked = URL masking. Omit to derive from `type` (temporary→302, permanent→301).",
      +  "enum": [
      +    "301",
      +    "302",
      +    "307",
      +    "masked"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / type / description
      Previous value: -"`permanent` sends HTTP 301 (browsers cache); `temporary` is the configurable default redirect."New value: +"`permanent` = HTTP 301; `temporary` = HTTP 302 (default); `masked` = loads the destination in a frame (URL masking). For a precise code — including a 307 temporary redirect — use `redirect_type`."
    • changedInput schema / properties / type / enum
      Previous value: -[
      -  "permanent",
      -  "temporary"
      -]New value: +[
      +  "permanent",
      +  "temporary",
      +  "masked"
      +]
  2. First observedv0.4.1

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=true and openWorldHint=true, so the safety profile is covered. The description adds only that the operation is 'Free' (a cost signal beyond the annotations), but does not say what happens if a forward already exists for the same subdomain despite idempotentHint=true, nor what is returned.

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 short sentences, front-loaded with the action and resource, then scope, then use case. Nothing is redundant and the trailing 'Free.' is a single high-value word.

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?

With seven parameters, four enums, no output schema, and rich annotations plus full schema descriptions, the definition covers what an agent needs to construct a call. The remaining gap is behavioral: no statement about overwrite/conflict behavior on an idempotent create or about the resulting state.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and all seven parameters carry their own detailed descriptions, including the enum semantics and the type/redirect_type precedence rule. The description's only parameter-adjacent content (empty/omitted subdomain means apex) merely restates what the schema already says, so baseline 3 applies.

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?

The description names a specific verb and resource ('Add a URL forwarding rule for a domain') and immediately narrows the scope to subdomain-versus-apex forwarding to an arbitrary destination URL. That framing separates it cleanly from create_email_forward and the DNS-record siblings without needing to name 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 phrase 'Useful for redirects without setting up a web server' gives an implied use case but no explicit when-to-use/when-not-to-use rules. It never mentions checking list_url_forwards first, nor how this differs from achieving a redirect via create_dns_record.

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