Skip to main content
Glama

roma__CreateEnvironmentVariableV2

Create environment-specific variables for APIs published across environments so each deployment can use its own service address, version, or configuration.

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>",
      "project_id": "<project_id>"
    },
    "name": "roma__CreateEnvironmentVariableV2"
  }
}

Input Schema

NameRequiredDescriptionDefault
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 provided, so the description carries the full disclosure burden, yet it says nothing about the fact that this is a mutating write operation, what permissions or instance/project scope it requires, or whether the created variable can be modified later. It offers domain background only, and even that is about environment variables in general rather than this call's effect.

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 sentence with no filler, but it is front-loaded with background explanation rather than the tool's action, so the most useful information (that this creates an environment variable) never appears. The examples given are reasonable but do not compensate for the missing statement of purpose.

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 two-parameter creation tool with no annotations and no output schema, the description should at minimum state that it creates an environment variable and what a caller needs. It does neither, and since there is no output schema, return-value behavior is also left entirely unexplained.

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 both path parameters (project_id, instance_id) documented in the schema including an example and a pointer to the appendix for obtaining the project ID. The description adds no meaning beyond that, so the baseline 3 applies.

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 environment variables across published environments and gives examples (service address, request version), but never states the actual action of the tool. Nothing in the text says it creates an environment variable, so the verb must be inferred from the tool name alone, and it does not distinguish this tool from roma__UpdateEnvironmentVariableV2 or roma__ShowDetailsOfEnvironmentVariableV2.

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 only indirect context — that variables differ per environment after an API is published — with no explicit instruction on when to call this tool rather than the update, delete, or details siblings. No prerequisites, no exclusions, and no mention of what must exist beforehand (e.g., an environment created via roma__CreateEnvironmentV2).

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