Skip to main content
Glama

Create a web redirection

domain_web_redirection_create

Create a web redirection from a domain host to a target URL using HTTP 301, HTTP 302, or frame cloaking; fails if the host already has a DNS record.

Instructions

Redirect a host of the domain to a URL (permanent http301, temporary http302, or cloak in a frame). Fails if the host already has a DNS record: use domain_web_redirection_replace to replace it.

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>",
      "host": "<host>",
      "url": "<url>"
    },
    "name": "domain_web_redirection_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesTarget http or https URL.
hostYesRedirected host name, e.g. www.example.com.
typeNohttp301
domainYesDomain name, e.g. example.com (Unicode accepted).
accountNoAccount name; the default account when omitted.
protocolNohttps

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With annotations only declaring write-safety flags, the description adds the key behavioral fact an agent needs: the call fails when a DNS record already exists at the host, which is a collision rule annotations cannot express. It also explains what each mode does at a high level (permanent, temporary, frame cloak). What it does not say is whether the redirect overrides or coexists with other records, or whether the operation is idempotent.

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?

Two sentences, zero filler: the action and its modes come first, the failure condition and sibling routing second. Every clause carries information an agent would otherwise have to discover by error.

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?

An output schema exists so return values need no explanation, and the description covers the two riskiest unknowns for a create call: mode semantics and the existing-record failure. The remaining gap is protocol/account behavior, which the schema largely carries on its own.

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 67%, and the description contributes meaning the schema lacks by glossing the type enum values as permanent http301, temporary http302, and cloak-in-a-frame. It leaves protocol (http/https/httpsonly) and account unaddressed, but the schema documents those.

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 ('Redirect a host of the domain to a URL') and immediately enumerates the three redirect modes, so an agent knows exactly what object is created and in what form.

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?

Gives an explicit precondition ('Fails if the host already has a DNS record') and names the alternative (domain_web_redirection_replace) with the condition that selects it. It stops short of distinguishing create from update/delete siblings, but the main routing decision is covered.

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