Skip to main content
Glama

apig__UpdateEnvironmentVariableV2

Updates an API Gateway environment variable value; if the variable is referenced as an API backend service address, all APIs using it are republished automatically.

Instructions

[APIG] 修改环境变量。环境变量引用位置为api的后端服务地址时,修改对应环境变量会将使用该变量的所有api重新发布。

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_variable_id": "<env_variable_id>",
      "instance_id": "<instance_id>",
      "project_id": "<project_id>",
      "variable_value": "<variable_value>"
    },
    "name": "apig__UpdateEnvironmentVariableV2"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYes项目ID,获取方式请参见[获取项目ID](apig-api-180713009.xml)。
instance_idYes实例ID,在API网关控制台的“实例信息”中获取。
variable_valueYes变量值支持英文字母、数字、英文格式的下划线、中划线,斜线(/)、点、冒号,1 ~ 255个字符。
env_variable_idYes环境变量的编号

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 carries the full behavioral burden. It does add genuinely valuable context beyond the schema: that changing a variable referenced as an API backend address triggers republishing of every API using it. It omits permission requirements, reversibility, and response behavior, leaving notable gaps for a mutation tool.

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, front-loaded with the core action and followed immediately by the key side effect. Nothing is redundant, though the second sentence is dense and could be split for readability.

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?

Four required parameters are fully documented in the schema and there is no output schema to explain, so the main remaining need is behavioral context. The republish side effect is covered, but for an unannotated mutation the absence of permission, reversibility, and failure-mode information leaves it only partially complete.

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 all four parameters (project_id, instance_id, variable_value, env_variable_id) are already documented in the schema. The description adds no parameter-level meaning beyond that, so the baseline 3 applies.

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?

States a specific verb and resource ("修改环境变量" / modify environment variable) and tags the service as [APIG]. It is clearly distinguishable from the Create/Delete/Show sibling tools by its verb, though the description itself does not name or contrast with any alternative.

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: an agent infers you call this to change an existing variable's value. There is no explicit when-to-use versus when-to-use-Create, and no stated prerequisites such as needing the variable to already exist, though the republish warning implicitly signals caution before calling.

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