Skip to main content
Glama

apig__UpdateMemberGroup

Updates a VPC channel backend server group in API Gateway, including name, port, weight, labels, and description. Weight changes are unsupported when the load channel is a Nacos microservice type.

Instructions

[APIG] 更新指定VPC通道后端服务器组。当负载通道为nacos微服务类型时,不支持修改服务器组权重。

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": {
      "instance_id": "<instance_id>",
      "member_group_id": "<member_group_id>",
      "member_group_name": "<member_group_name>",
      "project_id": "<project_id>",
      "vpc_channel_id": "<vpc_channel_id>"
    },
    "name": "apig__UpdateMemberGroup"
  }
}

Input Schema

NameRequiredDescriptionDefault
dict_codeNoVPC通道后端服务器组的字典编码
project_idYes项目ID,获取方式请参见[获取项目ID](apig-api-180713009.xml)。
instance_idYes实例ID,在API网关控制台的“实例信息”中获取。
vpc_channel_idYesVPC通道的编号
member_group_idYesVPC通道后端服务器组编号
member_group_nameYesVPC通道后端服务器组名称。支持汉字、英文、数字、下划线、中划线、点,且只能以英文和汉字开头,3-64字符。
microservice_portNoVPC通道后端服务器组的端口号,仅VPC通道类型为微服务时支持。端口号为0时后端服务器组下的所有地址沿用原来负载端口继承逻辑。
member_group_remarkNoVPC通道后端服务器组描述。
member_group_weightNoVPC通道后端服务器组权重值。
microservice_labelsNoVPC通道后端服务器组的标签,仅VPC通道类型为微服务时支持。
microservice_versionNoVPC通道后端服务器组的版本,仅VPC通道类型为微服务时支持。
reference_vpc_channel_idNo引用的负载通道编号,仅VPC通道类型为引用类型(vpc_channel_type=reference)时支持。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description must carry the full behavioral burden. It does disclose a genuine constraint, namely the nacos restriction on modifying member_group_weight, which is non-obvious and valuable. But for a mutation tool it says nothing about update semantics (replace vs. partial), required permissions, side effects on group members, or reversibility.

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 short sentences: the purpose is front-loaded and the caveat follows immediately, with no filler. The '[APIG]' prefix is mild noise but the core text is efficient.

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 12-parameter mutation tool with no annotations and no output schema, the description is thin. It identifies the operation and one constraint, but an agent still lacks information about update semantics and side effects, which for a write operation is a meaningful gap.

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 each of the 12 parameters is documented in-schema, so this establishes the baseline of 3. The description adds only one semantic link: the restriction on member_group_weight for nacos-type channels. No further meaning is added beyond the schema.

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 states a specific verb and resource: update a VPC channel backend server group ('更新指定VPC通道后端服务器组'). That is clearly distinct from the Create/Delete/Show member-group siblings, though it never explicitly contrasts them.

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

Usage Guidelines3/5

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

One useful exclusion is given (weight modification is unsupported when the load channel is a nacos microservice type), which tells the agent when part of the operation is invalid. However, there is no guidance on when to use this tool instead of the sibling update or create tools, and no prerequisites (permissions, whether the group must already exist) are stated.

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