Skip to main content
Glama

apig__ListApiVersionsV2

Retrieve historical versions of a specific API within an environment to review changes or roll back safely. Specify API, instance, and project IDs; paginate results with limit and offset.

Instructions

[APIG] 查询某个API的历史版本。每个API在一个环境上最多存在10个历史版本。

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

Input Schema

NameRequiredDescriptionDefault
limitNo每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
api_idYesAPI的编号
env_idNo环境的编号
offsetNo偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
env_nameNo环境的名称
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 must carry the behavioral load; it does establish that the operation is a read/query and adds the meaningful constraint that at most 10 versions exist per API per environment. It omits pagination behavior, ordering of returned versions, and authorization/instance scoping expectations.

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 short sentences with the core purpose front-loaded and no filler. The second sentence is useful but its connection to the optional environment parameters could be made explicit rather than left implicit.

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 7-parameter list tool with no annotations and no output schema, the schema covers parameter formats well, but the description says nothing about what a version record contains or how results are ordered/paged. Adequate but leaves clear gaps.

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% (including limit/offset defaults and clamping rules), so the baseline is 3. The phrase 在一个环境上 hints that env_id/env_name filter versions by environment, but this implication is not stated explicitly enough to add real meaning beyond the schema.

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 first clause names a specific verb (查询) and resource (某个API的历史版本), so an agent can tell this is a version-history listing rather than an API detail or group listing. It does not explicitly contrast with the close sibling ListApiVersionDetailV2, so sibling differentiation is only partial.

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 or when-not-to-use guidance and no mention of the alternative (ListApiVersionDetailV2) for fetching a single version. The only contextual hint is the 10-version cap per environment, which implies this is a bounded list operation but does not tell the agent when to choose it.

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