Skip to main content
Glama

Redirect a domain

set_domain_redirect
DestructiveIdempotent

Let a domain and its www lead to another address — 'redirect old-company.com to new-company.com'. Not possible while a website or WordPress sits on the domain. Ask the user first: the domain stops showing anything of its own.

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_id": "<domain_id>",
      "target_url": "<target_url>"
    },
    "name": "set_domain_redirect"
  }
}

Input Schema

NameRequiredDescriptionDefault
domain_idYesThe domain id from list_domains.
keep_pathNotrue: /prices leads to target/prices (default).
permanentNotrue = 301 (default), false = 302.
target_urlYese.g. https://new-company.com

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so safety is covered. The description adds what those hints cannot: the blocking precondition, the requirement to confirm with the user first, and the concrete consequence that the domain stops showing anything of its own. It leaves unstated whether an existing redirect is replaced, which is the one remaining behavioral gap.

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 effect, then the precondition, then the confirmation warning. The quoted example earns its place by disambiguating source and target, and there is no filler.

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?

For a destructive, mutating tool with no output schema, this covers precondition, consequence and confirmation flow — everything needed to call it safely. Only the interaction with pre-existing redirects is left to inference.

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%, so domain_id, target_url, keep_path and permanent are already documented with defaults. The description adds only the nuance that the redirect applies to the apex and its www host; it explains nothing about keep_path or permanent beyond the schema.

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?

Uses a concrete verb-and-resource framing ("let a domain and its www lead to another address") with a worked example, so the effect is unmistakable. It does not explicitly name a sibling, but the redirect semantics are different enough from set_domain_front or set_domain_email that an agent can route correctly.

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 a hard precondition ("Not possible while a website or WordPress sits on the domain") and an explicit user-confirmation rule before calling. It stops short of naming the alternative tool to use when that precondition fails, but the when-to-use context is clear.

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.

Resources