Skip to main content
Glama

apig__ImportMicroservice

Imports an API microservice into Huawei Cloud APIG, creating APIs and grouping them for CSE, CCE, CCE_SERVICE, or Nacos backends using the provided instance and project details.

Instructions

[APIG] 导入微服务。

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": {
      "apis": "<apis>",
      "group_info": "<group_info>",
      "instance_id": "<instance_id>",
      "project_id": "<project_id>",
      "service_type": "<service_type>"
    },
    "name": "apig__ImportMicroservice"
  }
}

Input Schema

NameRequiredDescriptionDefault
apisYes导入的api列表
corsNo是否支持跨域,默认不支持
cce_infoNoCCE云容器引擎工作负载信息,service_type为CCE时必填
cse_infoNoCSE微服务详细信息,service_type为CSE时必填
protocolNoAPI网关访问微服务的请求协议HTTPS
auth_typeNoAPI的认证方式,默认无认证。NONE
group_infoYes导入微服务的API分组信息
nacos_infoNonacos基础信息。
project_idYes项目ID,获取方式请参见[获取项目ID](apig-api-180713009.xml)。
instance_idYes实例ID,在API网关控制台的“实例信息”中获取。
service_typeYes微服务中心类型。
backend_timeoutNoAPIG请求后端服务的超时时间。最大超时时间可通过实例特性backend_timeout配置修改,可修改的上限为600000,默认5000
cce_service_infoNoCCE云容器引擎Service信息,service_type为CCE_SERVICE时必填

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

D1.9/5.0
Behavior1/5

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

No annotations are supplied, so the description carries the full behavioral burden and discloses none of it. For a mutating import operation with 13 parameters it says nothing about which of cce_info/cse_info/nacos_info/cce_service_info are conditionally required by service_type, whether the operation is idempotent, what permissions are needed, or what side effects occur.

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

Conciseness2/5

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

The text is a single bracketed tag plus a noun phrase, so nothing is wasted but nothing earns its place either. Brevity here reflects under-specification rather than disciplined conciseness.

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

Completeness1/5

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

Given four nested backend-object variants gated by service_type, five required parameters, and no annotations or output schema, the description should explain the conditional contract and the shape of the result. It explains nothing, leaving the agent entirely dependent on the schema for a complex mutation.

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%, with per-field descriptions, enums, patterns, and defaults already documenting all 13 parameters, so the baseline of 3 applies. The description itself adds zero meaning about any parameter, including the mutually exclusive backend blocks.

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?

"[APIG] 导入微服务。" restates the tool name in Chinese and adds nothing beyond verb+resource. It does not distinguish this from siblings such as apig__ImportApiDefinitionsV2 or apig__ImportApiDefinitionsAsync, so an agent cannot tell which import tool applies to which situation.

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 when-to-use, when-not-to-use, or alternative-tool guidance of any kind. The agent is left to infer from the name alone that this creates an API group plus APIs from an existing microservice registration.

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