Skip to main content
Glama

apig__ImportApiDefinitionsAsync

Imports Swagger-compliant API definitions into a Huawei Cloud API Gateway instance asynchronously, supporting bulk API setup and custom gateway extension fields.

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": {
      "instance_id": "<instance_id>",
      "project_id": "<project_id>"
    },
    "name": "apig__ImportApiDefinitionsAsync"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.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 behavioral burden. It reveals only the payload-format constraint; it never says that the operation is asynchronous, that it presumably returns a task identifier, whether existing APIs are overwritten or merged, or what permissions are needed.

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 with the core action front-loaded and the format constraint following. No filler, though the reference to a user-guide chapter is only actionable if the agent can fetch it.

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 an asynchronous import tool with no annotations and no output schema, the definition omits the most decision-relevant facts: that the call starts a long-running task and that a sibling such as apig__ShowAsyncTaskResult is needed to poll the outcome. It also leaves the file-content input, implied by the Swagger wording, undocumented in the schema.

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 both path parameters (project_id, instance_id) are already documented in the schema, and the baseline of 3 applies. The description adds a Swagger-format constraint but it refers to file content that does not appear as a documented parameter in the schema, so it does not clarify the actual inputs.

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 states a specific verb and resource (import API definitions) and adds a constraint that the payload must follow the Swagger specification. It does not distinguish this tool from the near-identical siblings apig__ImportApiDefinitionsV2 or the roma__ variants, and never explains what the 'Async' suffix implies.

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 when-to-use guidance, no statement of prerequisites, and no routing to or away from alternatives such as ImportApiDefinitionsV2 or ExportApiDefinitionsAsync. Usage is only implied by the tool name and the Swagger reference.

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