Skip to main content
Glama

Switch your domain’s acceleration region (move to mainland China once filed)

set_domain_region
Idempotent

Change the region a custom domain is served from on the acceleration network. A domain without an ICP filing is automatically served from overseas nodes (worldwide excluding mainland China) when it goes live, so it opens in mainland China but more slowly; once the user has filed it, use this to set region to domestic (mainland China) or global (worldwide). It takes effect at once and takes a few minutes to reach every node; the domain keeps opening meanwhile. Switching to domestic / global while no filing can be found yet is refused with the reason (a fresh filing can take a while to sync from the MIIT records); region=overseas needs no filing. Workspace owner only. Confirm with the user before calling.

Input Schema

NameRequiredDescriptionDefault
regionNodomestic = mainland China acceleration (default, needs an ICP filing); global = worldwide (needs a filing); overseas = worldwide excluding mainland China (no filing needed)
hostnameNoThe domain itself, such as go.acme.com; pass this or domain_id
domain_idNoThe domain_id returned by bind_domain / list_domains; pass this or hostname

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?

Goes well beyond annotations (readOnly=false, idempotent=true, destructive=false): it discloses immediate effect with a few-minute propagation window, that the domain keeps serving during propagation, that unfiled domestic/global calls are refused with a reason (and why syncing lags), the permission requirement (workspace owner), and a confirm-with-user norm.

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?

Opening sentence states the action, then the filing/propagation constraints follow in a logical order. The second and third sentences are dense run-ons with semicolons and parentheticals that slow parsing, though no sentence is pure filler.

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 3-param mutation with no output schema, it covers propagation timing, failure mode, permissions, and confirmation intent — enough to call correctly. It does not mention what the tool returns or how a refusal is surfaced to the caller.

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%, and the enum description already explains domestic/global/overseas including filing requirements; the description largely restates this. It adds the practical consequence ('region=overseas needs no filing') but says nothing extra about hostname vs domain_id selection.

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: 'Change the region a custom domain is served from on the acceleration network.' This clearly separates it from bind_domain/unbind_domain/verify_domain and from the routing-related set_domain_route without needing the schema.

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 when-to-use and when-not conditions: a domain without an ICP filing is auto-served overseas, and this tool is for after filing to set domestic or global; overseas needs no filing; workspace owner only; confirm with the user first. It does not name sibling tools as alternatives, so it falls 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.

Resources