Skip to main content
Glama

apig__ListApiQuantitiesV2

Retrieve counts of APIs published to the RELEASE environment and APIs not yet published for a Huawei Cloud API Gateway instance, using project and instance IDs.

Instructions

[APIG] 查询租户名下的API概况:已发布到RELEASE环境的API个数,未发布到RELEASE环境的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__ListApiQuantitiesV2"
  }
}

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

B3.2/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden. It does disclose the return semantics (two counts split by RELEASE publication status) and the tenant-level scope, which is meaningful. However, it says nothing about permissions, whether counts are scoped to the given instance_id, or how unpublished/other-environment APIs are classified.

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, front-loaded sentence that immediately states the resource and the two metrics. No filler or repetition, though it is terse enough that it omits useful routing detail.

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 simple two-parameter read tool with no output schema, the description covers what is counted and at what scope, which is close to sufficient. The main gap is the absence of any signal separating this V2 variant from the equally named sibling, which is the primary ambiguity an agent would face.

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 both path parameters fully documented (project_id with a retrieval reference, instance_id with console location), so the baseline of 3 applies. The description adds no additional meaning about how the parameters constrain the resulting counts.

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 ('查询租户名下的API概况') and names the exact metrics returned (count of APIs published to RELEASE vs. not published). It is clear on its own, but it never distinguishes itself from the near-identically named sibling apig__ListApiQuantities (non-V2), so an agent cannot tell the two apart from the text.

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 or when-not-to-use guidance, and no alternative is named despite a sibling with an almost identical name. The only implicit signal is that this reports counts rather than listing resources, which an agent must infer.

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