Skip to main content
Glama

apig__ListApiRuntimeDefinitionV2

Retrieves the runtime definition of a specified API in a chosen environment, defaulting to RELEASE, so you can inspect deployed API behavior and configuration.

Instructions

[APIG] 查看指定的API在指定的环境上的运行时定义,默认查询RELEASE环境上的运行时定义。

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__ListApiRuntimeDefinitionV2"
  }
}

Input Schema

NameRequiredDescriptionDefault
api_idYesAPI的编号
env_idNoAPI的发布环境编号
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

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose a useful non-obvious default (queries RELEASE when env_id is omitted) and 'view' implies a read-only operation, but it says nothing about permissions, side effects, or what a 'runtime definition' contains in the response.

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 with the resource and the behavior-changing default front-loaded; no filler. It is arguably slightly under-specified rather than verbose, but nothing in it is wasted.

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

Completeness4/5

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

For a four-parameter read tool whose parameters are fully documented in the schema and which has no output schema, the description covers purpose, scope and the key default. Only the shape of the returned runtime definition is unaddressed, which is a minor gap for this complexity level.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds genuine meaning beyond the schema: it states that env_id defaults to RELEASE, which the schema's env_id entry does not say. It does not clarify how api_id, project_id and instance_id interact, keeping it below 5.

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?

A specific verb phrase (查看…运行时定义) and precise resource are stated: the runtime definition of a given API in a given environment. It is clear what the tool returns, but the description never names a sibling such as ShowDetailsOfApiV2 or ListApiVersionDetailV2, so an agent must infer the boundary with closely related read tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: use it to inspect runtime definitions, and env_id defaults to RELEASE. There is no explicit when-to-use-vs-alternatives guidance and no stated prerequisites or exclusions, which leaves routing between the many other apig__List*/Show* read tools 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