Skip to main content
Glama

apig__UpdateDomainV2

Updates configuration for an API Gateway bound domain, including minimum TLS version, ingress ports, HTTP-to-HTTPS redirect, and client certificate verification.

Instructions

[APIG] 修改绑定的域名所对应的配置信息。使用实例自定义入方向端口的特性时,注意开启/关闭客户端校验会对相同域名的不同端口同时生效。

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>",
      "group_id": "<group_id>",
      "instance_id": "<instance_id>",
      "min_ssl_version": "<min_ssl_version>",
      "project_id": "<project_id>"
    },
    "name": "apig__UpdateDomainV2"
  }
}

Input Schema

NameRequiredDescriptionDefault
group_idYes分组的编号
domain_idYes域名的编号
project_idYes项目ID,获取方式请参见[获取项目ID](apig-api-180713009.xml)。
instance_idYes实例ID,在API网关控制台的“实例信息”中获取。
min_ssl_versionYes最小ssl协议版本号。支持TLSv1.1或TLSv1.2TLSv1.1
ingress_http_portNo访问该域名绑定的http协议入方向端口,-1表示无端口且协议不支持,可使用80默认端口,其他有效端口允许的取值范围为1024~49151,需为实例已开放的HTTP协议的自定义入方向端口。
ingress_https_portNo访问该域名绑定的https协议入方向端口,-1表示无端口且协议不支持,可使用443默认端口,其他有效端口允许的取值范围为1024~49151,需为实例已开放的HTTPS协议的自定义入方向端口。
is_http_redirect_to_httpsNo是否开启http到https的重定向,false为关闭,true为开启,默认为false
verified_client_certificate_enabledNo是否开启客户端证书校验。只有绑定证书时,该参数才生效。当绑定证书存在trusted_root_ca时,默认开启;当绑定证书不存在trusted_root_ca时,默认关闭。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose one real side effect: toggling client certificate verification applies to all ports of the same domain simultaneously, which matters for the custom ingress port feature. However, it is silent on whether the update is a full replacement or a partial patch (five fields are required), what permissions are needed, and whether changes are reversible.

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?

Two sentences, front-loaded with the action and followed by a relevant caveat; nothing is padded. The bracketed '[APIG]' prefix is minor noise but harmless.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a nine-parameter mutation tool with no annotations and no output schema, the description covers the action and one side effect but leaves the update semantics (replace vs merge) and failure conditions unexplained. It is adequate but has clear gaps an agent would want filled before calling.

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%, so the schema already explains all nine parameters including enum values and port ranges, establishing a baseline of 3. The description's port/client-verification interaction note adds cross-parameter meaning that the schema does not express, but it does not clarify the required fields or the full-replace implication.

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?

The description names a specific verb and resource: modifying the configuration of a bound domain ('修改绑定的域名所对应的配置信息'). An agent knows it is an update operation on domain configuration. It does not differentiate from close siblings such as apig__UpdateSlDomainSettingV2 or apig__UpdateDomainV2 variants, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this tool versus alternatives, nor on prerequisites such as the domain needing to be already bound. The second sentence is a behavioral caution about custom ingress ports and client verification, not a usage rule. The agent must infer the call context.

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

Deploy Server

Other Tools