Skip to main content
Glama

apig__ExportApiDefinitionsAsync

Exports API definitions from a Huawei Cloud API Gateway group as Swagger/OpenAPI JSON, YAML, or YML files for backup, migration, or documentation.

Instructions

[APIG] 导出分组下API的定义信息。导出文件内容符合swagger标准规范,API网关自定义扩展字段请参考《API网关用户指南》的“导入导出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": {
      "env_id": "<env_id>",
      "group_id": "<group_id>",
      "instance_id": "<instance_id>",
      "project_id": "<project_id>"
    },
    "name": "apig__ExportApiDefinitionsAsync"
  }
}

Input Schema

NameRequiredDescriptionDefault
apisNo导出的API ID列表
typeNo导出的API定义的格式json
defineNo导出API的定义范围:spec
env_idYesAPI分组发布的环境ID
versionNo导出的API定义版本,默认为当前时间
group_idYesAPI分组ID
project_idYes项目ID,获取方式请参见[获取项目ID](apig-api-180713009.xml)。
instance_idYes实例ID,在API网关控制台的“实例信息”中获取。
oas_versionNoOpenAPI版本2.0

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.9/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 burden and it omits the most consequential trait: that this is an asynchronous operation whose output must be retrieved via a task-result tool. It does usefully describe the export payload (swagger standard, custom extension fields), but says nothing about task lifecycle, polling, or permissions.

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?

Two compact sentences that front-load the core action, followed by output-format context. The second sentence is largely a pointer to an external manual chapter, which adds little an agent can act on, but overall there is no padding.

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?

With nine parameters, four required, no annotations, and no output schema, the description should explain the async handoff and what the agent receives back. It mentions the export format but never states that the call initiates a task whose result must be fetched separately, which is essential for correct invocation.

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 nine parameters (apis, type, define, env_id, version, group_id, project_id, instance_id, oas_version) are already documented in the schema, including enums and defaults. The description adds no parameter-level meaning 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.

Purpose4/5

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

States a specific verb and resource: export the API definitions under a group, plus the output format (swagger-compliant). It does not distinguish itself from the closely named sibling apig__ExportApiDefinitionsV2, nor does it explain the 'Async' qualifier in the name, leaving the agent to infer that distinction.

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?

No guidance on when to choose this tool versus ExportApiDefinitionsV2 or the roma__ variants, and no statement of prerequisites. The only contextual remark is a pointer to an external user-guide chapter about extension fields, which is documentation advice rather than usage guidance.

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