Skip to main content
Glama

Mailrun Agent Identity

Remove domain

remove_domain
Destructive

Remove a domain (202 removal_pending; upstream teardown settles later). Until it settles the domain stays listed by get_domain and list_domains as removal_pending (removal_next_attempt_at is when the background sweep next tries to settle it) and add_domain refuses the name with domain_in_use; once settled it is gone and can be added again. Refused while any non-released identity holds an address on it. Preview without confirmation_token; execute with the token AND confirm_domain exactly equal to the canonical domain name.

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

Input Schema

NameRequiredDescriptionDefault
domainYes
confirm_domainNoMust exactly match the canonical domain at execution; it is an exact-target check, not approval.
confirmation_tokenNoOmit to receive a preview with an impact summary and a token; pass the token unchanged to execute. Tokens expire after five minutes unused and permit one accepted execution.

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?

Adds substantial context beyond destructiveHint=true: the 202 removal_pending response, that upstream teardown settles asynchronously, that the domain remains visible as removal_pending with removal_next_attempt_at, that add_domain rejects the name with domain_in_use until settlement, and that the name becomes reusable afterward. This is exactly the asynchronous-mutation behavior an agent cannot infer from annotations.

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 status code, then the lifecycle consequences, then the refusal condition and confirmation flow. Dense with nested parentheticals that slow reading slightly, but no sentence is filler and nothing is buried.

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 a destructive, non-idempotent, asynchronous mutation with no output schema, the description covers the immediate response code, eventual-settlement semantics, the retry timestamp, downstream effects on add_domain and listing, the blocking precondition, and the two-step confirmation. An agent has everything needed to call it and interpret the result.

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 67% and the schema already documents the token's expiry and single-use behavior and the exact-match semantics of confirm_domain. The description still contributes the dependency between parameters — that omitting confirmation_token yields a preview while passing it together with a matching confirm_domain executes — which is workflow meaning the schema does not state outright.

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 (remove a domain) and immediately distinguishes its behavior from sibling tools get_domain, list_domains, and add_domain by describing how the domain appears and is refused during the pending window. An agent can tell exactly what this does relative to its neighbors without opening another 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 concrete operational guidance: preview without confirmation_token, execute with the token plus an exact confirm_domain match, and refusal while any non-released identity holds an address. It explains the precondition and the two-phase flow, though it never explicitly frames when an agent should prefer this over an alternative path.

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