Skip to main content
Glama

Attach domain

domain_attach
Destructive

Attach a custom hostname to a Lizard service or generate a default subdomain when none exists; the response lists DNS records to add before verification.

Instructions

Every app already gets a *.onlizard.com domain automatically on its first deploy (check service_show's domain field before calling this — do not invent or guess a hostname). Only call this tool when the user explicitly wants to attach their own custom domain (pass hostname), or when service_show shows no domain yet (e.g. the service was created with skipInitialDeploy and never deployed) and they want one generated. Calling this again without hostname generates another subdomain rather than returning the existing one. For a domain bought on Lizard (domain_owned_list) or a subdomain of it, the DNS records are set for you; if that would replace records that point elsewhere, the call refuses and lists them, and force: true replaces them. Otherwise the response lists the DNS records the user must add, then domain_verify.

Input Schema

NameRequiredDescriptionDefault
portNo
forceNoMove the domain here if it's attached to another of your services; on a bought domain, also replace records that point elsewhere
projectYes
serviceYes
hostnameNoCustom hostname to attach; omit to generate a default subdomain

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.3
    • changedInput schema / properties / force / description
      Previous value: -"Move the domain here if it's attached to another of your services"New value: +"Move the domain here if it's attached to another of your services; on a bought domain, also replace records that point elsewhere"
  2. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Although annotations already flag destructiveHint=true and idempotentHint=false, the description adds real behavioral detail the annotations cannot convey: the refused-and-listed conflict case, force:true as the override, that DNS is auto-configured for Lizard-owned domains but returned as manual records otherwise, and that the call mints a fresh subdomain when repeated without hostname. It also tells the agent what the response contains, which matters because there is no output schema.

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?

A single dense paragraph, but front-loaded with the fact that changes the decision (the domain already exists) before the when-to-call rules, the conflict behavior, and the follow-up step. No filler sentences; every clause carries decision-relevant information.

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 destructive, non-idempotent mutation with no output schema, the description covers the safety-critical cases (refusal, force override, DNS side effects, verification follow-up) and even summarizes response contents. The remaining gap is `port`, which neither description nor schema explains, so an agent cannot tell when to supply it.

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 only 40%, so the description carries extra burden. It meaningfully explains hostname (custom vs. generated) and force (replace conflicting records), but `port` is completely undocumented anywhere, and project/service are only implied by the required-parameter list. Partial compensation for the coverage gap.

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 (attach a domain) and immediately scopes it against the automatic *.onlizard.com domain that every app already has. It distinguishes itself cleanly from siblings like domain_verify, domain_delete, and domain_dns_update by describing both the custom-hostname and the generate-subdomain modes.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit when/when-not: only call when the user explicitly wants a custom domain, or when service_show shows no domain at all, and it tells the agent to read service_show's `domain` field first rather than guessing a hostname. It also names the downstream alternative (domain_verify) for the manual-DNS path and warns that repeat calls without hostname create yet another subdomain instead of returning the existing one.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.