Skip to main content
Glama

Stop using a domain for previews

remove_preview_domain
Destructive

Asks to take the person's own domain off a project's previews: every address under it stops answering, and the previews keep their CodeGene addresses. 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.

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>",
      "domain": "<domain>",
      "reason": "<reason>"
    },
    "name": "remove_preview_domain"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainYesThe preview domain to remove, such as preview.acme.com.
reasonYesWhy, in a sentence: kept in the workspace's activity.
project_idYesThe project (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 goes well beyond them: all addresses under the domain stop answering, previews retain their CodeGene addresses, nothing happens until approval, the request waits 15 minutes, the caller cannot self-approve, and DNS records are untouched. That is exactly the destruction scope and auth/approval model 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?

Front-loaded with the action and its effect, then preconditions, then the approval workflow. Dense but nearly every clause carries operational information; the colon-joined clauses make it read slightly run-on, but nothing is padding.

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?

There is no output schema, and the description compensates by describing what comes back (a request link, 15-minute expiry, a requestId consumed by get_approval). For a destructive, approval-gated mutation, the agent has everything needed to call it and handle the result.

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 coverage is 100%, with each of the four parameters (domain, reason, project_id, workspace_id) described in the schema itself. The description adds no parameter-level detail such as format or sourcing for domain or reason, 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: taking a person's own domain off a project's previews, and clarifies the consequence (addresses stop answering) and that previews keep their CodeGene addresses. It is distinguishable from add_preview_domain/check_preview_domain by the 'off the previews' framing, though it never names a sibling to contrast with.

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 preconditions (owners and admins only), an explicit non-effect ('It does not change the domain's DNS records'), and the mandatory follow-up path: send the approval link to the person, then call get_approval with the requestId because the agent cannot approve. It stops short of explicitly contrasting with remove_domain or add_preview_domain, but the operational guidance is strong.

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