Skip to main content
Glama

apig__CreateAppCodeV2

Create an App Code for an APIG application to enable simple APP authentication, requiring the app ID, App Code value, instance ID, and project ID.

Instructions

[APIG] App Code为APP应用下的子模块,创建App Code之后,可以实现简易的APP认证。

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_code": "<app_code>",
      "app_id": "<app_id>",
      "instance_id": "<instance_id>",
      "project_id": "<project_id>"
    },
    "name": "apig__CreateAppCodeV2"
  }
}

Input Schema

NameRequiredDescriptionDefault
app_idYes应用编号
app_codeYesApp Code值
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.5/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden and falls well short. It does not state that this is a mutating create operation, whether the supplied app_code must be unique, whether it conflicts with existing codes, what permissions are needed on the app/instance, or what the call returns. The most important behavioral distinction, that the caller supplies the code value here whereas the Auto sibling generates it, is left unstated.

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, but it is framed as background explanation rather than leading with the actionable fact. The most decision-relevant information for an agent is absent, so brevity here reflects under-specification more than efficiency.

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 mutating create tool with four required parameters, no annotations, and no output schema, the description should say much more. It omits what happens on success, whether existing codes are affected, and how this differs from the auto-generation sibling, leaving an agent unable to call it confidently without external inference.

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 all four required parameters (app_id, app_code, project_id, instance_id) are already documented in the schema including path placement, examples, and how to obtain project and instance IDs. The description adds nothing 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.

Purpose3/5

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

The description does name the operation ("创建App Code" / creating an App Code) and adds domain context, that an App Code is a submodule of an APP that enables simple APP authentication. However, it largely restates the tool name and never distinguishes this tool from the sibling apig__CreateAppCodeAutoV2, which is the critical ambiguity here.

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 explicit guidance on when to use this tool versus the Auto variant or versus other app tools. The only contextual clue is the general statement that an App Code enables simple APP authentication, which implies usage indirectly but provides no prerequisites, exclusions, or alternatives.

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