Skip to main content
Glama

Connect a domain to a project

connect_domain

Asks to add a domain the person owns (such as www.acme.com) to a project, as the project's Domains settings do. Owners and admins of the project only. Nothing happens until you approve it in CodeGene: the answer gives a link to the request, which waits there for 15 minutes. Send the person that link; you cannot approve it. Then call get_approval with the requestId to learn how it ended. Once approved, the answer of get_approval lists the DNS record to add at the domain's provider; check_domain says who that provider is and shows when the record is seen. The address goes live by itself once the record is in.

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>",
      "hostname": "<hostname>",
      "reason": "<reason>"
    },
    "name": "connect_domain"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYesWhy, in a sentence: kept in the workspace's activity.
hostnameYesThe domain or subdomain, such as www.acme.com.
project_idYesThe project the domain points at (list_projects gives ids).
component_idNoWhich part of the project, when it has more than one that can take an address.
workspace_idNoWorkspace id from whoami; omit when there is one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

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

With annotations declaring readOnlyHint=false, destructiveHint=false and openWorldHint=false, the description still contributes real behavioral context the annotations cannot: the call only creates a pending request, nothing happens until human approval, the request expires in 15 minutes, and the agent cannot self-approve. Its remaining gap is small – how failures or expired requests are surfaced – so this sits above baseline but below the richest definitions.

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?

Information is front-loaded in the right order: what it does, who may call it, that it is asynchronous, then the follow-up tools. It is a single dense paragraph with mild repetition around the approval link ("the answer gives a link... Send the person that link"), but no sentence is wasted given the multi-step workflow.

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?

There is no output schema and the tool is an asynchronous, human-gated mutation, so the description must explain the whole lifecycle – and it does, naming get_approval, check_domain and the DNS record step. An agent has everything needed to call it and to drive the workflow to completion.

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 100% and every one of the five parameters carries its own description, so the schema does the heavy lifting. The prose adds only the hostname example (already in the schema) and no meaning for component_id or workspace_id, so it neither compensates nor detracts; this is baseline territory rather than added value.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a concrete verb and resource: adding "a domain the person owns (such as www.acme.com) to a project," anchored to a known surface ("the project's Domains settings"). It is unmistakably a domain-attachment action, though it never distinguishes itself from the sibling add_preview_domain, so an agent must rely on names alone for that boundary.

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?

It states the audience restriction up front ("Owners and admins of the project only") and spells out the full when-and-how: call it, send the returned link to the person, then call get_approval with the requestId. It even tells the agent what it must not do ("you cannot approve it"), leaving nothing about the usage path to inference.

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