Skip to main content
Glama

apig__CreateAnApp

Create an application identity in Huawei Cloud API Gateway to authorize API access; provide a name and optional description, key, and secret for the app.

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

Input Schema

NameRequiredDescriptionDefault
nameYesAPP的名称。支持汉字,英文,数字,下划线,且只能以英文和汉字开头,3 ~ 64个字符。
remarkNoAPP描述。字符长度不能大于255。
app_keyNoAPP的key。支持英文,数字,“_”,“-”,且只能以英文或数字开头,8 ~ 64个字符。
app_secretNo密钥。支持英文,数字,“_”,“-”,“_”,“!”,“@”,“#”,“$”,“%”且只能以英文或数字开头,8 ~ 64个字符。

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?

With no annotations, the description carries the full behavioral burden. It omits whether creation is idempotent, whether name collisions fail, whether app_key/app_secret are auto-generated when omitted, and what permissions are needed — all material for a write operation.

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 padding, but the lead sentence is a conceptual definition rather than the tool's action, so the content is misordered for selection purposes. It is brief without being informative.

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 mutation tool with no annotations and no output schema, the description should at least say what is created and what is returned. It leaves unclear whether the response contains the generated key/secret and whether required authorization of APIs is a separate step.

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 each of the four parameters is already documented with format rules and length constraints. The description adds no parameter-level meaning beyond that, which is acceptable at baseline given the schema's completeness.

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 (an identity that can access APIs once authorized) but never states the action the tool performs. The name 'CreateAnApp' carries the verb; the description only restates the resource concept, so an agent must infer creation from the name alone.

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 guidance on when to create an app versus use siblings such as apig__CreateAnAppV2, nor prerequisites like whether the caller must own the gateway or whether API authorization must follow. The sentence about authorization describes a downstream consequence, not when to invoke 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