Skip to main content
Glama

Check a custom domain

check_domain
Idempotent

Look up a custom domain's DNS records now and, when both are right, switch it on: the certificate is issued automatically and the domain starts serving within a few minutes. Returns the domain's status (pending, verified, active or cert_failed) and, while pending, what is still wrong with the records. DNS changes can take a while to spread, so a pending result is normal right after adding the records; call it again later.

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": "check_domain"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainYesThe custom domain, e.g. "app.yourcompany.com". A pasted URL is trimmed to its hostname.
project_idYesThe project's id, as returned by create_project or list_projects.

Output Schema

NameRequiredDescriptionDefault
urlNohttps://<domain> once active and the project is public, otherwise null.
domainYesThe hostname.
statusYespending = waiting for the DNS records. verified = records found, certificate being issued. active = serving over HTTPS (while the project is public). cert_failed = the certificate could not be issued; see problem.
problemNoWhat is still wrong, in words. null when nothing is.
recordsYesThe DNS records to add at the domain's DNS provider.
checked_atNoWhen DNS was last checked, ISO 8601.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Adds substantive behavior beyond the annotations: the tool can switch the domain on, issue a certificate automatically, and begin serving within minutes. It also explains status values and that a pending result is normal while DNS propagates, which is important operational context.

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?

The description is front-loaded with the lookup and activation behavior, then covers the returned status and the retry caveat. Every sentence adds useful context without repetition.

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?

Although an output schema exists, the description still provides the key lifecycle and timing context an agent needs: certificate issuance, serving delay, status meanings, and normal pending behavior. It is complete for a domain-check-and-activate tool.

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 project_id and domain with examples and hostname trimming behavior. The description adds no parameter-specific meaning beyond what the schema provides, 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 operation: look up DNS records and conditionally switch the domain on with automatic certificate issuance. The resource and scope are clear, but it does not explicitly name or distinguish itself from the related add_domain sibling.

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 clear usage context: call it after adding DNS records, and call again later while the result is pending. It does not provide explicit when-not-to-use guidance or name an alternative tool, so it stops short of a 5.

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.