Skip to main content
Glama

add_custom_domain

Register a custom domain to map to your Run402 subdomain and receive DNS configuration instructions.

Instructions

Register a custom domain (e.g. example.com) to point at a Run402 subdomain. Returns DNS instructions for the human to configure.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainYesThe custom domain to register (e.g. 'example.com' or 'docs.example.com')
project_idYesThe project ID that owns the subdomain
subdomain_nameYesThe Run402 subdomain to map this domain to (e.g. 'myapp' for myapp.run402.com)
Behavior3/5

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

With no annotations, the description must carry the behavioral burden. It mentions returning DNS instructions, implying a non-destructive, async-like setup, but lacks details on prerequisites, ownership verification, or error handling.

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 a single, efficient sentence that front-loads the verb and resource, then adds key information about the return value. No wasted words.

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 registration tool with 3 parameters and no output schema, the description provides the essential purpose and return value. It lacks some context (e.g., error states, prerequisites), but remains fairly complete.

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% with adequate parameter descriptions. The description adds no additional meaning beyond the schema, meeting the baseline but not exceeding it.

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 clearly states the action (register), the resource (custom domain), and the purpose (point at a Run402 subdomain), distinguishing it from sibling tools like list_custom_domains and remove_custom_domain.

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?

The description explains the tool's use case (registering a custom domain) but does not mention when not to use it or alternative tools (e.g., check_domain_status for checking existing domains).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MajorTal/run402'

If you have feedback or need assistance with the MCP directory API, please join our Discord server