Skip to main content
Glama

Remove a domain from a project

remove_domain
Destructive

Asks to take a domain the person owns (such as www.acme.com) off a project, as the Remove button in the project's Domains settings does: the project stops answering there, whether the address was live or still waiting for its DNS record. Owners and admins of the project only. Nothing happens until you approve it in CodeGene: the answer gives a link to the request, which waits there for 15 minutes. Send the person that link; you cannot approve it. Then call get_approval with the requestId to learn how it ended. It does not change the domain's DNS records; the person keeps or removes those at the domain's provider.

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": {
      "project_id": "<project_id>",
      "hostname": "<hostname>",
      "reason": "<reason>"
    },
    "name": "remove_domain"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYesWhy, in a sentence: kept in the workspace's activity.
hostnameYesThe domain or subdomain to remove, such as www.acme.com.
project_idYesThe project the domain is on (list_projects gives ids).
workspace_idNoWorkspace id from whoami; omit when there is one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, but the description adds behavior the annotations cannot convey: the call does not execute immediately, it returns a request link that waits 15 minutes, the caller cannot self-approve, and the domain's DNS records are left untouched at the provider. That is precisely the operational context an agent needs before invoking a destructive tool.

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 most consequential facts are front-loaded (what it does, who may call it) followed by the approval flow and the DNS caveat. It is longer than typical but nearly every clause carries information; the 'such as www.acme.com' example slightly duplicates the schema.

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 still explains what the response contains (a link and a requestId) and how to resolve the outcome via get_approval, and it warns that DNS records are unaffected. For a destructive, approval-gated mutation, nothing essential is missing.

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 project_id, hostname, reason, and workspace_id are already documented in the schema. The description adds only the notion that the hostname is a domain the person owns, and gives no guidance on the reason field or when to omit workspace_id, so the baseline of 3 applies.

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?

The description states a specific verb and resource ('take a domain the person owns ... off a project') and anchors it to a familiar UI action ('as the Remove button in the project's Domains settings does'), plus the concrete effect: 'the project stops answering there.' It never distinguishes this from the sibling remove_preview_domain, so an agent must infer the boundary, which keeps it short of a 5.

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?

Usage context is explicit: 'Owners and admins of the project only,' works 'whether the address was live or still waiting for its DNS record,' and the follow-up path is spelled out ('Send the person that link ... Then call get_approval with the requestId'). It lacks an explicit exclusion against the closely named remove_preview_domain alternative.

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