Skip to main content
Glama

apig__UpdateBackendInstancesV2

Update backend instances for a specified VPC channel by fully overwriting the server group's backend list; omit the group to replace all instances.

Instructions

[APIG] 更新指定的VPC通道的后端实例。更新时,使用传入的请求参数对对应云服务组的后端实例进行全量覆盖修改。如果未指定修改的云服务器组,则进行全量覆盖。

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>",
      "project_id": "<project_id>",
      "vpc_channel_id": "<vpc_channel_id>"
    },
    "name": "apig__UpdateBackendInstancesV2"
  }
}

Input Schema

NameRequiredDescriptionDefault
membersNo后端实例列表
project_idYes项目ID,获取方式请参见[获取项目ID](apig-api-180713009.xml)。
instance_idYes实例ID,在API网关控制台的“实例信息”中获取。
vpc_channel_idYesVPC通道的编号
member_group_nameNo需要修改的后端服务器组

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose one genuinely important trait — that the update is 全量覆盖 (full override, replacing existing backend instances) and that omitting 云服务器组 also triggers a full override — but says nothing about permissions, irreversibility, or what the response contains.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded, but the second sentence restates the 全量覆盖 idea already introduced in the first and again in the closing clause, producing noticeable redundancy for a three-sentence description.

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 mutation tool with no annotations and no output schema, the description covers purpose and the key overwrite behavior, which is the most important thing an agent needs. It still leaves gaps around destructive impact, required authorization, and result shape that a description alone would have to supply here.

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%, so the schema already documents project_id, instance_id, vpc_channel_id and the members array. The description adds only marginal meaning by tying member_group_name to the overwrite behavior (omitting it means full overwrite); it does not explain member fields, weight, status, or ecs_id 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: 更新指定的VPC通道的后端实例 (update backend instances of a specified VPC channel). This distinguishes it from the sibling Adding/List/Delete backend-instance tools by operation type, though it never names an alternative explicitly.

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?

Usage is only implied: the tool updates backend instances and performs a full overwrite. There is no explicit statement of when to choose this over apig__AddingBackendInstancesV2 or apig__DeleteBackendInstanceV2, nor any prerequisites such as required VPC channel state.

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