Skip to main content
Glama

roma__ListApiRuntimeDefinitionV2

Retrieve the runtime definition of a specified ROMA API in a given environment, defaulting to RELEASE, to inspect deployed API configuration.

Instructions

[ROMA] 查看指定的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": "roma__ListApiRuntimeDefinitionV2"
  }
}

Input Schema

NameRequiredDescriptionDefault
api_idYesAPI的编号
env_idNoAPI的发布环境编号
project_idYes项目ID,获取方式请参见API参考的“附录 > 获取项目ID”章节。
instance_idYes实例ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.5/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 genuine behavioral trait beyond the schema — that omitting the environment falls back to RELEASE — and '查看' signals a read-only operation, but it says nothing about permissions, error behavior, or what the returned definition contains.

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 default behavior front-loaded and no filler. It is appropriately sized, though the bracketed vendor tag adds little for an agent.

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 simple read-only lookup with complete schema coverage, three required identifiers, and no output schema, the description covers the essentials of what is queried and the environment default. Only the shape of the returned runtime definition is left unexplained, which is a minor gap for a well-understood concept.

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 four parameters are already documented in the schema and the baseline is 3. The description adds only the default-value behavior for env_id, which is mildly useful but marginal beyond the schema's example value of DEFAULT_ENVIRONMENT_RELEASE_ID.

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+resource pair (查看...运行时定义 / view the runtime definition) scoped to a given API and environment, and names the default environment. An agent can tell it retrieves runtime configuration rather than, say, version history or ACL bindings, though it never explicitly contrasts itself with siblings such as ListApiVersionDetailV2.

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?

The only usage guidance is implicit: the default-RELEASE behavior hints that env_id can be omitted. There is no statement of when this tool should be chosen over alternatives, no prerequisites, and no exclusions.

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