Skip to main content
Glama

Attach a custom domain

add_domain
DestructiveIdempotent

Attaches a hostname to a slug owned by the token and returns the DNS records to create: a CNAME for a subdomain, an A record or an ALIAS record for an apex (one of those, not both), and every TXT record. Inputs: slug, domain, and token. Status starts at pending_dns until DNS and the certificate are ready. Free allows 1 hostname, Hobby 3, Pro 20. deed.page names are rejected.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
slugYesSlug you own.
tokenNoBearer token returned by your first publish (deed_tok_...). Optional if the MCP client sends Authorization: Bearer.
domainYesHostname to attach, such as docs.example.com or example.com. No scheme or path.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare non-readOnly, destructive, idempotent, and openWorld, so the description adds value on top: it discloses the post-call state ('Status starts at pending_dns until DNS and the certificate are ready'), the exact artifacts returned, and quota limits. It does not explain why destructiveHint is set for an add operation (e.g. whether an existing hostname is overwritten), which is a minor gap.

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 return value, then inputs, then state, quotas, and the rejection rule. Every sentence carries information, though the run-on DNS-record clause and the quoted input list make it slightly denser than necessary.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutating tool with no output schema, the description covers the important return values (CNAME/A/ALIAS/TXT records), the resulting state (pending_dns), quota enforcement, and input rejection. Only the reason behind destructiveHint=true remains undisclosed.

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 all three parameters (slug, token, domain) are already documented with format guidance and token semantics in the schema itself. The description only restates the input list, adding no format or edge-case meaning beyond what the schema provides.

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 ('Attaches a hostname to a slug') and immediately clarifies the output (DNS records to create, split by subdomain vs apex). The reader can distinguish this from siblings like remove_domain, list_domains, and domain_status without opening any 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 usage constraints: token sourcing, plan quotas (Free 1, Hobby 3, Pro 20), and an exclusion ('deed.page names are rejected'). It does not, however, explicitly route the agent to alternatives such as domain_status or remove_domain when the domain already exists.

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