Skip to main content
Glama

apig__CreatePlugin

Creates an API Gateway plugin with a specified type, global visibility, and JSON configuration for a given 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_name": "<plugin_name>",
      "plugin_scope": "<plugin_scope>",
      "plugin_type": "<plugin_type>",
      "project_id": "<project_id>"
    },
    "name": "apig__CreatePlugin"
  }
}

Input Schema

NameRequiredDescriptionDefault
remarkNo插件描述,255字符。
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

C2.5/5.0
Behavior2/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, and it discloses essentially nothing: no mention that plugin_content must match the structure implied by plugin_type, no note on duplicate-name behavior, permission requirements, or whether global scope is the only allowed value. Only the mutation implied by "创建" is communicated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

It is a single short sentence with no wasted words and is trivially front-loaded, so there is no structural problem. But the brevity comes from under-specification rather than discipline—one more sentence on plugin_type/plugin_content coupling would have earned its place.

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

Completeness2/5

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

For a 7-parameter, 6-required creation tool with no annotations and no output schema, the description is far too thin to guide correct invocation. The rich parameter schema partially compensates, but an agent still lacks any statement of preconditions, scope semantics, or what a successful creation returns.

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%, with all seven parameters documented in-schema including examples, patterns, enums, and max lengths, so the baseline of 3 applies. The description adds no meaning beyond the schema—it does not explain, for example, that plugin_content's JSON shape depends on the chosen plugin_type, which is the one gap the schema leaves implicit.

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

Purpose3/5

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

The description "[APIG] 创建插件信息" states a verb (创建/create) and a resource (插件/plugin), so the basic purpose is inferable. However, "插件信息" adds vagueness rather than specificity, and nothing distinguishes this from the many sibling CreatePlugin tools in other namespaces (cse__CreatePlugin, roma__CreatePlugin) or from apig__UpdatePlugin. It is minimum-viable, not differentiating.

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?

There is no when-to-use guidance, no prerequisites, no exclusions, and no pointer to alternatives such as apig__UpdatePlugin for modifying an existing plugin. The agent must infer usage entirely from the name and schema.

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