Skip to main content
Glama

apig__UpdateEnvironmentV2

Update an API Gateway environment's name or remark using its environment, instance, and project IDs; only these attributes can be modified.

Instructions

[APIG] 修改指定环境的信息。其中可修改的属性为:name、remark,其它属性不可修改。

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": {
      "env_id": "<env_id>",
      "instance_id": "<instance_id>",
      "name": "<name>",
      "project_id": "<project_id>"
    },
    "name": "apig__UpdateEnvironmentV2"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes环境的名称,支持英文,数字,下划线,且只能以英文字母开头。
env_idYes环境的ID
remarkNo描述信息
project_idYes项目ID,获取方式请参见[获取项目ID](apig-api-180713009.xml)。
instance_idYes实例ID,在API网关控制台的“实例信息”中获取。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.5/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. It does disclose the key mutation constraint, which fields are writable and that everything else is immutable, which is genuinely beyond the schema. It says nothing about permissions required, whether a partial update is allowed (only 4 of 5 params are required), or what happens on failure.

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?

Two short sentences, front-loaded with the operation and immediately followed by the field constraint. No filler, no repetition of the tool name.

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 definition covers scope but not behavior: it omits whether the call is idempotent, what a successful response contains, and what error conditions to expect. Adequate to invoke, thin on consequences.

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 each parameter is already documented with type, length and example. The description reinforces that only name and remark are editable, implicitly telling the agent that env_id/instance_id/project_id are identifiers rather than editable values, but adds no format or syntax detail 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 gives a specific verb and resource (modify the information of a specified environment) and names the mutable fields, name and remark. It does not distinguish this tool from the near-identical siblings apig__UpdateEnvironment and roma__UpdateEnvironmentV2, so it falls 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 Guidelines3/5

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

The sentence 'other attributes cannot be modified' tells the agent the tool is only for editing name/remark, which is a usable boundary condition. However, there is no explicit guidance on when to choose this over apig__UpdateEnvironment (non-V2) or apig__UpdateEnvironmentVariableV2, so the routing decision is left to inference.

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