Skip to main content
Glama

apig__UpdatePlugin

Modify an existing API Gateway plugin's name, type, scope, content, and remark for a specified instance and project.

Instructions

[APIG] 修改插件信息。

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>",
      "plugin_content": "<plugin_content>",
      "plugin_id": "<plugin_id>",
      "plugin_name": "<plugin_name>",
      "plugin_scope": "<plugin_scope>",
      "plugin_type": "<plugin_type>",
      "project_id": "<project_id>"
    },
    "name": "apig__UpdatePlugin"
  }
}

Input Schema

NameRequiredDescriptionDefault
remarkNo插件描述,255字符。
plugin_idYes插件编号
project_idYes项目ID,获取方式请参见[获取项目ID](apig-api-180713009.xml)。
instance_idYes实例ID,在API网关控制台的“实例信息”中获取。
plugin_nameYes插件名称。支持汉字,英文,数字,下划线,且只能以英文和汉字开头,3-255字符。
plugin_typeYes插件类型。
plugin_scopeYes插件可见范围。global:全局可见;
plugin_contentYes插件定义内容,支持json。参考提供的具体模型定义

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

D1.7/5.0
Behavior1/5

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

No annotations are provided, so the description carries the full burden and it discloses nothing. It does not say whether this is a full replacement or partial update (7 of 8 parameters are required, which strongly implies replacement), whether changes are reversible, what permissions are needed, 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.

Conciseness2/5

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

It is a single short sentence, so there is no wasted wording, but that brevity reflects under-specification rather than conciseness. For a mutation tool with 8 parameters, one generic sentence is not an appropriately sized definition.

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

Completeness1/5

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

This is a plugin mutation with 8 parameters, 7 of which are required, no annotations, and no output schema, yet the description is one generic sentence. Nothing an agent needs to invoke it safely or correctly is covered beyond what the raw schema states.

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 every parameter including plugin_content, plugin_type, and plugin_scope is already documented in the schema with examples, enums, and constraints. The description adds no meaning beyond that, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

"修改插件信息" only restates the tool name UpdatePlugin as a verb+resource pair and adds no distinguishing detail. It does not say what aspects of the plugin get modified (name, content, scope, type) or how this differs from siblings like apig__CreatePlugin, apig__ShowPlugin, or apig__DeletePlugin.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines1/5

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

There is no guidance at all on when to call this instead of CreatePlugin, ShowPlugin, or the attach/detach tools. Nothing states prerequisites, whether an existing plugin must be shown first, or what happens to fields omitted from the request.

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