Skip to main content
Glama

Set domain

set_domain
DestructiveIdempotent

An app's custom domain (Pro, one per app): a hostname string adds it and returns the CNAME/TXT records to create at your DNS; null removes it and purges its cached pages. A string while a different domain is set is refused: set null first, then add the new one. The domain serves the app once its status turns active.

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": "<app>",
      "hostname": "<hostname>"
    },
    "name": "set_domain"
  }
}

Input Schema

NameRequiredDescriptionDefault
appYesThe app slug.
hostnameYesThe full domain name, e.g. `groceries.silva.family`. Required: pass a string to add, null to remove. A string while a different domain is set is refused: set null first, then add the new one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations (which only declare destructive/idempotent/open-world): it discloses that adding returns CNAME/TXT records to create at the DNS provider, that removal purges cached pages, that conflicting requests are refused, and that the domain only serves once status turns active.

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?

Four tight sentences, front-loaded with the resource and its plan/quantity constraints before the add/remove mechanics. Some of the hostname semantics duplicate the schema, which is the only wasted space.

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?

For a two-parameter mutation with no output schema, the description covers prerequisites (Pro), cardinality, the null-first workflow, what comes back (DNS records), and the eventual-consistency signal (active status). Nothing an agent needs before calling is missing.

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 hostname parameter description already contains the same add/remove and refusal wording, so the description largely restates rather than adds meaning. The only useful addition, that a string yields DNS records, is about the result rather than the parameter.

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 ('an app's custom domain', hostname string adds, null removes) plus scoping constraints (Pro plan, one per app), which lets an agent distinguish this from sibling set_* tools that touch collaborators, secrets, or config.

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 explicit operational conditions: pass a string to add, null to remove, and a different-domain state is refused so null must come first. No alternative tool is pointed to, but none of the listed siblings plausibly covers domain setup, so the gap is minor.

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.