Skip to main content
Glama

roma__ChangeApiVersionV2

Changes the active version of a ROMA API by specifying the instance, project, API, and target version IDs.

Instructions

[ROMA] 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": {
      "api_id": "<api_id>",
      "instance_id": "<instance_id>",
      "project_id": "<project_id>",
      "version_id": "<version_id>"
    },
    "name": "roma__ChangeApiVersionV2"
  }
}

Input Schema

NameRequiredDescriptionDefault
api_idYesAPI的编号
project_idYes项目ID,获取方式请参见API参考的“附录 > 获取项目ID”章节。
version_idYesAPI版本的编号
instance_idYes实例编号

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, yet it never says what the change operation does: whether it is idempotent, whether it affects the currently published API in production, whether prior state is lost, or whether special permissions are required. The only useful signal is implied domain context that versions capture a published snapshot, which is thin for a mutation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single short sentence with no padding, but the content is misallocated: the space is spent on a definition of versions rather than on the operation, so the sentence does not earn its place as tool documentation.

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

Completeness2/5

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

For a four-required-parameter mutation tool with no annotations and no output schema, the description should at minimum state the effect of the change and its prerequisites. Instead it offers only conceptual background, leaving the agent without enough information to invoke it confidently.

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% and all four required path parameters (api_id, project_id, version_id, instance_id) are documented in the schema, so the baseline is 3. The description adds no meaning about version_id or the relationship between instance_id and api_id beyond what the schema already states.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description explains what an API version is ("每次发布时会基于当前API定义生成一个版本,版本记录发布时的定义及状态"), which is background context rather than the action the tool performs. It never states that the tool switches/changes the API to a given version, so the agent must infer the verb from the name alone and cannot distinguish it from siblings like ListApiVersionDetailV2 or ListApiVersionsV2.

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 guidance, no preconditions (e.g. the API must already have published versions), and no mention of alternatives such as listing versions before changing to one. The description only supplies general version semantics and leaves tool 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