Skip to main content
Glama

Add a custom domain

add_custom_domain

Call this tool to connect a domain to an app. Pass app_id, domain and dns_mode (subdomain_cname or apex_address). Call get_custom_domain_instructions for usage and workflow. MCP version 2.12.

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": {
      "app_id": "<app_id>",
      "domain": "<domain>",
      "dns_mode": "<dns_mode>"
    },
    "name": "add_custom_domain"
  }
}

Input Schema

NameRequiredDescriptionDefault
app_idYesTarget app id
domainYesHostname to connect to this app
dns_modeYesDNS routing mode for this hostname
mcp_versionNoSet to "2.12", the MCP version in this tool's description. Use this tool's version, not another tool's version.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / mcp_version / description
      Previous value: -"Set to \"2.11.7\", the MCP version in this tool's description. Use this tool's version, not another tool's version."New value: +"Set to \"2.12\", the MCP version in this tool's description. Use this tool's version, not another tool's version."
  2. Changed1 schema field changed
    • changedInput schema / properties / mcp_version / description
      Previous value: -"Set to \"2.11.0\", the MCP version in this tool's description. Use this tool's version, not another tool's version."New value: +"Set to \"2.11.7\", the MCP version in this tool's description. Use this tool's version, not another tool's version."
  3. Changed1 schema field changed
    • addedInput schema / properties / mcp_version
      Added value: +{
      +  "description": "Set to \"2.11.0\", the MCP version in this tool's description. Use this tool's version, not another tool's version.",
      +  "maxLength": 32,
      +  "minLength": 1,
      +  "pattern": "^\\d+\\.\\d+(?:\\.\\d+)?$",
      +  "type": "string"
      +}
  4. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=false and destructiveHint=false, so the safety profile is covered. Beyond that the description only adds that a DNS workflow is involved via the instructions tool; it doesn't say what actually happens after the call (DNS record creation, propagation, when verification becomes possible) or whether re-calling is safe. It contributes useful direction but little behavioral depth.

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?

Three short sentences, front-loaded with the action, then parameters, then the hand-off to the instructions tool. The trailing "MCP version 2.12." fragment is terse but useful for populating mcp_version. No wasted prose.

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 4-parameter, fully documented, annotated tool with no output schema, the description covers what an agent needs to invoke it and points to the workflow tool for anything further. The main remaining gap is that the post-call path (verify_custom_domain) is not surfaced here, deferred entirely to get_custom_domain_instructions.

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 four parameters are already documented, including the enum values and the mcp_version pattern. The description restates the required parameters and the two dns_mode values, which duplicates rather than extends the schema. The one additive detail is pinning MCP version 2.12, already present in the mcp_version schema description, so the baseline 3 is appropriate.

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?

States a specific verb and resource: "connect a domain to an app," which is clearly an additive operation distinct from siblings named delete_custom_domain and verify_custom_domain. The required parameters are named, so the agent understands the shape of the call. It stops short of explicitly contrasting itself with those siblings, but the name plus verb make the intent unambiguous.

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?

Explicitly routes the agent: "Call get_custom_domain_instructions for usage and workflow," which tells the caller that prerequisite/workflow knowledge lives in a sibling tool. It gives clear triggering context (connecting a domain to an app) but no when-not-to-use conditions and doesn't mention verify_custom_domain as a follow-up step, leaving that to the instructions tool.

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