Skip to main content
Glama

Detach domain

detach_domain
DestructiveIdempotent

Removes a custom domain from a site at once; the site goes back to its platform address (the url get_site answers), republished so its links say so. Nothing is deleted; the domain is free to attach again, here or anywhere. The answer names the two DNS records to remove.

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": {
      "siteId": "<siteId>",
      "domain": "<domain>"
    },
    "name": "detach_domain"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainYesThe attached hostname to remove
siteIdYesSite id (from list_sites)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: nothing is deleted, the site is republished so existing links reflect the platform address, the change is reversible, and the response contains the two DNS records to remove. This is exactly the supplementary context annotations cannot convey.

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 tight sentences, front-loaded with the action and followed by consequence, reversibility, and return value. No redundant restatement of the name or title.

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?

With no output schema, the description compensates by describing the return value (the two DNS records). Combined with the mutation consequence and reversibility, an agent has everything needed to call this confidently.

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%, with both siteId and domain already documented in the schema, so the description carries no additional parameter burden. The description adds no syntax or constraint detail for either parameter, which is acceptable at full coverage.

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 ('Removes a custom domain from a site') plus the concrete consequence (the site reverts to its platform address and is republished). This is clearly distinct from the attach_domain sibling, and the mention of get_site anchors the platform URL concept.

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 decision context — the operation is reversible ('the domain is free to attach again, here or anywhere') and non-destructive to data, which tells an agent when it is safe to use. It stops short of naming an explicit alternative or a when-not condition, so it does not reach 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