Skip to main content
Glama

Forward a domain to a URL

set_forward
DestructiveIdempotent

Forward (HTTP-redirect) a subdomain to another URL. Claims the label first if you do not own it yet, in which case an email may be required exactly as for claim_domain. Defaults to a 302 temporary redirect that preserves the request path and query. HTTPS at the edge is handled for you. A forward TAKES OVER the hostname: any A/AAAA/CNAME record on the label itself is deleted as part of this call and returned in 'replaced_records' — report those to the user, since the name no longer points where it did. Records on a sub-label (www.myapp.makes.fyi) and TXT records are untouched. If the forward fails to come up the replaced records are restored, with new ids.

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": {
      "label": "<label>",
      "target": "<target>"
    },
    "name": "set_forward"
  }
}

Input Schema

NameRequiredDescriptionDefault
cloakNoKeep the AgentDomains hostname in the address bar and load the target inside a frame. Discouraged — breaks many sites.
emailNoEmail, if this call also claims a new name on an account without one.
labelYesThe subdomain label, without the domain suffix (e.g. 'myapp' for myapp.makes.fyi).
domainNoWhich domain to act under: 'makes.fyi' (the default) or 'agentdomains.co'. The same label can exist under each, so pass this whenever you are not using the default.
targetYesDestination URL, including scheme (e.g. https://example.com/docs).
api_keyNoYour AgentDomains API key (adom_…). Only needed when this MCP connection has no `Authorization: Bearer` header, for example right after calling signup.
permanentNoUse a 301 permanent redirect instead of the default 302 temporary one.
preserve_pathNoAppend the incoming path and query to the target. Defaults to true; set false to always land on the target root.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / api_key
      Added value: +{
      +  "description": "Your AgentDomains API key (adom_…). Only needed when this MCP connection has no `Authorization: Bearer` header, for example right after calling signup.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes far beyond the annotations (destructiveHint=true only signals risk) by naming exactly what is destroyed: A/AAAA/CNAME records on the label, returned in 'replaced_records' and worth reporting to the user, while sub-label and TXT records survive. It also discloses rollback behavior with new ids and the default 302 vs 301 choice, plus edge HTTPS handling — this is the precise information needed to act safely on a destructive call.

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?

Front-loads the action, then the claim caveat, then the destructive side effect, then failure semantics — a sensible risk-first ordering. Dense but every sentence carries operational information; nothing is filler.

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?

For an 8-parameter destructive mutation with no output schema, it covers prerequisites (claiming/email), side effects, the 'replaced_records' return field, untouched record classes, and rollback. An agent has everything needed to call it and to report consequences correctly.

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, but the description adds real meaning: it explains the default 302, that the redirect preserves path and query, and when the email parameter comes into play. It says nothing about 'cloak' or 'domain' beyond what the schema already states, so it stops short of full compensation.

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 — 'Forward (HTTP-redirect) a subdomain to another URL' — and immediately distinguishes itself from claim_domain by explaining it will claim the label if unowned. An agent can tell what this does and roughly where it sits relative to the DNS/claim siblings without opening the schema.

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 clear context for the claiming case ('an email may be required exactly as for claim_domain'), which routes the agent to the sibling's semantics. It does not explicitly exclude or compare against set_proxy or remove_forward, so the when-not guidance is implied rather than stated.

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.