Skip to main content
Glama

apig__UpdateEnvironment

Updates an API Gateway environment's name and remark using its environment ID; other attributes remain unchanged.

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>",
      "name": "<name>"
    },
    "name": "apig__UpdateEnvironment"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes环境的名称,支持英文,数字,下划线,且只能以英文字母开头,3 ~ 64字符。
env_idYes环境的ID,可通过查询环境信息获取该ID
remarkNo描述信息,字符长度不能大于255

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?

No annotations are supplied, so the description must disclose behavior itself. It does add one useful fact: only name and remark can be changed and other attributes are immutable, which implies partial-update semantics. It omits permission requirements, what happens if an unsupported field is passed (silently ignored or rejected), and whether the operation is reversible, so significant behavioral gaps remain.

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 with no filler. The mutable-attribute constraint is stated up front, right after the purpose statement, so the most decision-relevant fact is easy to see.

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

Completeness4/5

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

This is a simple three-parameter update tool with full schema coverage and no output schema, so the description does not need to explain return values. It covers purpose and the mutability boundary adequately. It is only slightly incomplete in not addressing versioning against the V2 sibling or error behavior.

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%: all three parameters have inline descriptions with examples, character constraints, and a note that env_id can be obtained from the environment query tool. The description adds no syntax or format detail beyond that; the statement that only name and remark are modifiable merely restates what the schema already constrains, so the baseline of 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?

The description names a specific verb ('修改' / modify) and resource ('指定环境' / the specified environment), and it narrows the scope to the mutable attributes name and remark. It is clear what the tool does, but it never distinguishes this tool from the sibling apig__UpdateEnvironmentV2, so an agent cannot tell from the description which one to choose.

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?

The description gives no when-to-use guidance, no prerequisites, and no exclusions. It does not mention when to prefer this tool over apig__UpdateEnvironmentV2, or over CreateEnvironment or DeleteEnvironment, and it does not say whether env_id must already exist. At best, the restriction to name and remark implies the tool performs a limited update.

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