Skip to main content
Glama

apig__ListApisV2

Lists APIs in a Huawei Cloud API Gateway instance with filters and pagination, returning API details and publication info while excluding backend service and request parameter data.

Instructions

[APIG] 查看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__ListApisV2"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoAPI编号
nameNoAPI名称
tagsNoAPI标签,该参数可指定多个,多个不同的参数值为或关系;不指定或为空时,表示不筛选标签;指定为#no_tags#时,表示筛选无标签API。
typeNoAPI类型
limitNo每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
env_idNo发布的环境编号
offsetNo偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
req_uriNo请求路径
group_idNoAPI分组编号
auth_typeNo授权类型
project_idYes项目ID,获取方式请参见[获取项目ID](apig-api-180713009.xml)。
req_methodNo请求方法
instance_idYes实例ID,在API网关控制台的“实例信息”中获取。
req_protocolNo请求协议
precise_searchNo指定需要精确匹配查找的参数名称,目前仅支持name、req_uri
return_data_modeNo指定API详情中需要包含的额外返回结果,多个参数之间使用“,”隔开,当brief和其他include参数共同使用时,brief不生效。brief
vpc_channel_nameNo负载通道名称

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.2/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. It usefully discloses that results include publish info but exclude backend service and request-parameter details, which is genuine behavioral context beyond the schema. However it says nothing about permissions, pagination defaults, or ordering behavior for a heavily parameterized listing call.

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, front-loaded with the action and the returned data, followed by the exclusion note. Efficient, though the trailing '等' leaves the returned payload somewhat vague.

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 17-parameter read-only listing tool with no output schema, the description adequately conveys what comes back and what doesn't. It falls short on pagination semantics and access requirements that an agent might need before calling.

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 the 17 parameters are already documented, including limit/offset bounds and the tags pattern. The description adds no syntax or meaning beyond the schema, 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?

The description names a specific verb+resource (查看API列表 / view API list) and clarifies scope by stating it returns API details and publish info while excluding backend service and request-parameter data. That negative scope adds real value, but it never distinguishes this generic list from the many bound/unbound ListApis* siblings.

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 vs when-not guidance and no alternatives are named. Given the crowded sibling family of ListApisBoundWith*, ListApisNotBoundWith*, and ListPluginAttachedApis tools, some routing guidance would have been valuable and its absence leaves selection entirely to inference.

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