Skip to main content
Glama

apig__CreateAppCodeAutoV2

Creates an App Code for an API Gateway application without requiring a specific code value, letting the backend auto-generate a random string.

Instructions

[APIG] 创建App Code时,可以不指定具体值,由后台自动生成随机字符串填充。

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_id": "<app_id>",
      "instance_id": "<instance_id>",
      "project_id": "<project_id>"
    },
    "name": "apig__CreateAppCodeAutoV2"
  }
}

Input Schema

NameRequiredDescriptionDefault
app_idYes应用编号
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

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose one meaningful behavioral trait: the server fills the value with a random string. It does not explain whether the generated code is returned in the response, its length/format, permission requirements, or idempotency behavior — significant for a mutation tool intended to produce a secret-like value.

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

Conciseness4/5

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

A single compact sentence that front-loads the key fact (auto-generated value). The '[APIG]' tag is minor noise, but there is no redundant or padded wording.

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

Completeness3/5

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

For a no-annotation mutation tool with no output schema, the description covers what it does but not what the caller needs next — how the generated code is retrieved. The three required path parameters are fully documented in the schema, so the remaining gap is behavioral rather than structural.

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?

All three parameters are path parameters with 100% schema description coverage, including examples and patterns, so the schema does the heavy lifting. The description adds no parameter-level meaning beyond noting that no code value is passed, which is a baseline-3 situation.

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

Purpose4/5

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

The description names a specific verb+resource (create an App Code) and adds the distinguishing trait that the code value is auto-generated rather than supplied. It implicitly separates this from the sibling apig__CreateAppCodeV2 (manual value) without naming it explicitly, so the differentiation is inferable rather than stated.

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

Usage Guidelines3/5

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

Usage is only implied: use this when you do not have a specific code value and want the backend to generate one. There is no explicit 'use X instead when...' routing to apig__CreateAppCodeV2, and no prerequisites or exclusions are stated.

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