Skip to main content
Glama

apig__CreateAnAppV2

Creates an API Gateway app identity, enabling you to authorize APIs so the app can call them.

Instructions

[APIG] APP即应用,是一个可以访问API的身份标识。将API授权给APP后,APP即可调用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": {
      "instance_id": "<instance_id>",
      "name": "<name>",
      "project_id": "<project_id>"
    },
    "name": "apig__CreateAnAppV2"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesAPP的名称。支持汉字,英文,数字,下划线,且只能以英文和汉字开头,3 ~ 64个字符。
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

C2.3/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, yet it discloses nothing about the write: whether app_key/app_secret are auto-generated when omitted, whether names must be unique within the instance, error conditions, or idempotency. The only context offered is a generic statement about what an APP is used for, not what calling this tool does or changes.

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?

Two short sentences with no filler, but they are misallocated: the opening slots should carry the action ('creates an app in an API Gateway instance'), and instead the reader gets a glossary definition. Conciseness is fine; front-loading and information density are not.

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 six-parameter mutation tool with no annotations and no output schema, the definition omits the action, permissions/behavioral notes, and the relationship to the sibling create/update/code tools. The rich schema covers inputs, but nothing covers what calling this tool means or 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%, so length/character rules for name, app_key, app_secret, and where to obtain project_id and instance_id are already fully documented in the schema. The description adds no additional meaning to any of the six parameters. Baseline 3 applies since the schema does all the work.

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?

The text defines what an APP is ('APP即应用,是一个可以访问API的身份标识') but never states the operation being performed. It neither says 'creates an app' nor distinguishes this from apig__CreateAnApp, apig__UpdateAnApp, or apig__CreateAppCodeV2. An agent reading only the description cannot tell this is a creation tool at all.

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 mention of prerequisites, and no routing to alternatives such as apig__CreateAnApp or apig__CreateAppQuota. The only usage-adjacent content is a conceptual note that authorizing APIs to an APP lets it call them, which is background rather than an instruction for selecting this tool.

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