Skip to main content
Glama

add_domain

Attach a custom domain to a project and return the DNS records to create at your registrar; verify DNS to issue HTTPS automatically.

Instructions

Attach a custom domain (e.g. www.example.com) to a project. Returns the DNS record(s) the user must create at their registrar; then call verify_domain. HTTPS certificates are issued automatically once DNS is verified.

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

Input Schema

NameRequiredDescriptionDefault
domainYes
project_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only, non-destructive, closed-world mutation, so the baseline is covered. The description adds genuinely useful behavior: the call returns DNS records the user must create, and HTTPS certificates are issued automatically once DNS verifies. It omits error/idempotency behavior for duplicate or invalid domains.

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?

Three short sentences, front-loaded with the action, then the return value, then the required next step. Every sentence carries information an agent needs; nothing is padding.

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 two-parameter mutation with an output schema present, the description needn't explain return payload structure, and it still summarizes it helpfully. The only gap is failure/duplicate-domain behavior and any permission requirements, which are not covered by annotations or schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, and it does by giving a concrete 'www.example.com' format for the domain parameter and indicating that it is attached 'to a project' (project_id). It still leaves minor ambiguity about scheme/hostname normalization, but adds real value where the schema is bare.

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 custom domain ... to a project') with a concrete example domain, which clearly separates it from siblings like set_subdomain and verify_domain. An agent can tell what the call does without opening the 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 an explicit follow-up workflow ('Returns the DNS record(s) ... then call verify_domain'), which tells the agent this is step one of a two-step flow. It stops short of exclusions, e.g. when to prefer set_subdomain or what to do if the domain is already attached.

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