Skip to main content
Glama

roma__CreateEnvironmentV2

Creates a named API environment in Huawei Cloud ROMA so teams can publish and invoke APIs separately for development, testing, or production.

Instructions

[ROMA] 在实际的生产中,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": {
      "instance_id": "<instance_id>",
      "name": "<name>",
      "project_id": "<project_id>"
    },
    "name": "roma__CreateEnvironmentV2"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes环境的名称,支持英文,数字,下划线,且只能以英文字母开头。
remarkNo描述信息
project_idYes项目ID,获取方式请参见API参考的“附录 > 获取项目ID”章节。
instance_idYes实例ID

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 supplied, so the description carries the full behavioral burden and delivers almost none: nothing on whether creation is idempotent, what happens on a duplicate name, required permissions, or what the response contains. Only the background fact that APIs can be published to environments is conveyed.

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 it is background context rather than a front-loaded statement of what the tool does, so its brevity reflects under-specification rather than efficiency.

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 mutation tool with four parameters, three of them required, no annotations and no output schema, the description should explain creation semantics and failure modes. Instead it only describes the environment concept, leaving the agent without the information needed to call 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%, with name pattern/length and project_id/instance_id documented in the schema itself, so the baseline is 3. The description adds no parameter-level meaning such as how instance_id relates to project_id or what remark is used for.

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 the concept of API environments (dev/test/prod) and mentions publishing APIs to an environment, but never states the tool's actual action — creating an environment. The tool name carries the verb; the description only restates the domain resource, so an agent must infer what the call does.

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 guidance on when to use this instead of siblings such as roma__UpdateEnvironmentV2 or roma__DeleteEnvironmentV2, nor any prerequisites (e.g. project/instance must exist, name uniqueness). The conceptual context is not usage guidance.

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