Skip to main content
Glama

apig__UpdateAppV2

Update a specified APIG app's name, remark, and optionally its key/secret when custom credentials are enabled.

Instructions

[APIG] 修改指定APP的信息。其中可修改的属性为:name、remark,当支持用户自定义key和secret的开关开启时,app_key和app_secret也支持修改,其它属性不可修改。

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

Input Schema

NameRequiredDescriptionDefault
nameYesAPP的名称。支持汉字,英文,数字,下划线,且只能以英文和汉字开头,3 ~ 64个字符。
app_idYes应用编号
remarkNoAPP描述。字符长度不能大于255。
app_keyNoAPP的key。支持英文,数字,“_”,“-”,且只能以英文或数字开头,8 ~ 200个字符。
app_secretNo密钥。支持英文,数字,“_”,“-”,“!”,“@”,“#”,“$”,“%”,且只能以英文或数字开头,8 ~ 128个字符。
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.6/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 behavioral burden. It does disclose the key behavioral trait that only a subset of fields is writable and that the rest are immutable, plus a conditional prerequisite for key/secret edits. It does not say what happens if an immutable field is submitted (error vs. ignored), what authorization or instance state is required, or anything about the result of the call.

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?

A single compact sentence, front-loaded with the action and resource, followed immediately by the mutability constraint. Every clause earns its place, including the closing '其它属性不可修改', which prevents a plausible misuse.

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 seven-parameter mutation tool with no annotations and no output schema, the description covers the most important unknown (field mutability) but leaves failure behavior and the overlapping sibling update tool unresolved. The schema handles identifier parameters adequately, so the remaining gap is behavioral rather than structural.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so character-set and length constraints are already fully documented per parameter. The description nevertheless adds meaning the schema cannot express: which of the seven parameters are actually writable and under what condition app_key/app_secret become writable. That mutability mapping is the single most useful semantic layer for this tool.

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 ('修改指定APP的信息') and then enumerates exactly which attributes are mutable (name, remark, and conditionally app_key/app_secret). This is far more informative than a restatement of the name. It does not, however, distinguish itself from the sibling apig__UpdateAnApp, which by name appears to perform an overlapping update, so an agent cannot resolve that ambiguity from the description.

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 implied through the mutability rule: use this tool for name/remark changes, and for app_key/app_secret only when the custom-key switch is enabled. That is a genuine precondition, but there is no explicit statement of when to prefer this over apig__UpdateAnApp or apig__ResettingAppSecretV2, and no guidance on what to do when the switch is off.

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