Skip to main content
Glama

Create a subdomain for a work

create_subdomain
Destructive

Create a new subdomain under a managed domain that shows a work — 'make shop.example.com for my shop'. Only the name before the domain (letters, digits, hyphen). This goes online: ask the user before calling this.

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": {
      "domain_id": "<domain_id>",
      "name": "<name>",
      "target_kind": "<target_kind>",
      "target_id": "<target_id>"
    },
    "name": "create_subdomain"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe name before the domain, e.g. shop.
domain_idYesThe managed domain's domain_id from get_address_plan.
target_idYesThe work's id from get_address_plan.
target_kindYesWhat should be shown: site, form or shop.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true; the description adds the important real-world consequence (the subdomain is publicly live) and mandates user confirmation, which is actionable beyond the flags. It could say more about reversibility or what occurs on a name collision, but the core risk is disclosed.

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?

Three short sentences, front-loaded with purpose, then the format rule, then the safety instruction. Nothing is redundant and each sentence adds a distinct piece of information.

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-required-parameter mutation with no output schema, the description covers purpose, input format and the confirmation requirement. Gaps are minor: it does not mention behavior when the name is already taken, nor what the caller receives on success.

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%, so the baseline would be 3; the description earns extra by adding the character-set constraint ('letters, digits, hyphen') for the name, which the schema does not state. It also reinforces that only the leading label is supplied, not the full hostname.

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 ('Create a new subdomain under a managed domain') and scopes it with 'that shows a work', which separates it from raw DNS-record creation among the siblings. The concrete mapping example ('make shop.example.com for my shop') removes any ambiguity about input format.

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 an explicit procedural constraint: 'ask the user before calling this' because the result goes online. It does not, however, contrast against plausible alternatives like create_dns_record or connect_hostname, so an agent must infer why it should pick this tool over those.

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