Skip to main content
Glama

Mailrun Agent Identity

Set domain redirect

set_domain_redirect
Idempotent

Change where visitors to an active ROOT domain (and its www.) are redirected. Ask the user for the destination first. redirect_to must be an https URL (max 255 chars; a bare host like example.com means https://example.com) with no IP address, credentials, port, query, fragment or empty, . or .. path segments, and not on this domain; a trailing slash is dropped. Every visitor lands on exactly this URL. Subdomains and domains that are not active yet are refused. Repeating the same call is safe: on service_unavailable (reason zone_busy or outcome_unknown) retry the SAME call after retry_after_seconds. domain_redirect_unavailable means Mailrun no longer manages this website.

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>",
      "redirect_to": "<redirect_to>"
    },
    "name": "set_domain_redirect"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainYesRoot domain as returned by list_domains.
redirect_toYesThe https URL visitors are sent to, e.g. https://www.example.org/welcome (a bare host means https).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (mutation, idempotent, non-destructive, open-world), the description discloses extensive behavior: validation rules for redirect_to, refusal conditions, safe retry semantics with a specific error code (service_unavailable with reason zone_busy or outcome_unknown) and retry_after_seconds, plus the meaning of domain_redirect_unavailable. This is rich context that an agent cannot infer from structured fields alone.

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?

The description is front-loaded with the core action and then packs in necessary constraints. It is dense but every sentence adds relevant information; a bulleted structure might improve readability, but it is not overly verbose.

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 mutation tool with no output schema, the description covers validation, refusal conditions, retry logic, and error meanings thoroughly. It does not mention what a successful call returns or any authentication requirements, leaving a small gap for an agent that may expect a confirmation.

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

Parameters5/5

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

Although schema coverage is 100%, the description adds substantial meaning beyond the schema by enumerating detailed constraints for redirect_to: must be https, max 255 chars, no IP address, credentials, port, query, fragment, empty/. /.. segments, not on this domain, trailing slash dropped, and bare host implies https. The domain parameter is also tied back to list_domains, reinforcing its expected format.

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 states a specific verb ('Change') and resource ('where visitors to an active ROOT domain (and its www.) are redirected'), with clear scope that separates it from domain management siblings like add_domain or get_domain. An agent can immediately tell this is a redirect configuration tool for existing active root domains only.

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?

It explicitly says to ask the user for the destination first and defines when the tool will refuse (subdomains, inactive domains), giving clear usage context. It does not name alternative tools for related tasks (e.g., add_domain for new domains), so it falls short of a 5.

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