Skip to main content
Glama

Connect the user's own domain (or check it)

connect_domain
Destructive

Use when the user wants their own domain (e.g. "bakery.com") on a site, or asks whether it works yet: with domain it connects it (bakery.com shows the site, www.bakery.com redirects to it) and returns the exact DNS steps for their provider to relay (a record for the domain, a CNAME for www, and a TXT record proving the domain is theirs: the site is not served until it is seen); without domain it checks the status (pending, verifying, active) and whether https://bakery.com opens.

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": {
      "site_id": "<site_id>"
    },
    "name": "connect_domain"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainNoThe domain, e.g. "bakery.com" or "shop.bakery.com". Omit to check the current one.
site_idYesThe site id: the first part of the site URL, e.g. "bella-roma" for https://bella-roma.ginta.page (see list_sites).
with_wwwNoOnly if the user wants www.bakery.com as the main address (bakery.com then redirects to it). Default: bakery.com is the main address.

Output Schema

NameRequiredDescriptionDefault
textYesThe answer in words, the same as the text content: read it (for get_guide the whole guide, for get_site the files' contents).
domainNoThe domain: state (pending, verifying, active, error), records and the steps for its DNS provider; null = none.
enabledNoWhether connecting domains is open.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / text
      Added value: +{
      +  "description": "The answer in words, the same as the text content: read it (for get_guide the whole guide, for get_site the files' contents).",
      +  "type": "string"
      +}
    • addedOutput schema / required
      Added value: +[
      +  "text"
      +]
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already flag a mutating, open-world, non-idempotent, destructive operation, and the description adds real context beyond them: the exact records required (A record, www CNAME, ownership TXT) and the crucial gate that 'the site is not served until it is seen'. It does not discuss authorization requirements, reversibility of a connection, or propagation timing, which would round out a destructive/outward-facing 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?

The trigger condition is front-loaded in the first clause and the connect/check split is expressed compactly with a colon and parentheticals. It is a single dense sentence, which is efficient, though the nested parentheses make it slightly harder to parse at a glance.

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?

With an output schema present, the description needn't explain return values, and it still covers both modes, the DNS expectations, and the redirect behavior. The main remaining gap is what an agent should do when status is 'pending' or 'verifying' (wait, retry, or relay steps again), which matters for a tool whose primary flow is iterative verification.

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% and the schema already documents domain, site_id, and with_www including the omit-to-check behavior. The description restates the same with_www semantics (www.bakery.com as main address with a redirect) rather than adding new meaning such as accepted domain formats or subdomain edge cases, so the baseline of 3 applies.

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?

The description names a concrete resource (the user's own domain) and two distinct operations keyed off a single parameter: 'with domain it connects it' versus 'without domain it checks the status'. It also spells out the resulting behavior (site served at bakery.com, www redirecting) so an agent can distinguish this from sibling tools like manage_connections or create_site.

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?

'Use when the user wants their own domain on a site, or asks whether it works yet' gives an explicit trigger condition and even maps the parameter presence to the mode (connect vs check). It does not name an alternative tool or state when-not to use it, so it stops short of full routing guidance.

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