Skip to main content
Glama

roma__UpdateEnvironmentVariableV2

Updates a ROMA environment variable value and republishes all APIs that reference it as a backend service address.

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": {
      "env_variable_id": "<env_variable_id>",
      "instance_id": "<instance_id>",
      "project_id": "<project_id>",
      "variable_value": "<variable_value>"
    },
    "name": "roma__UpdateEnvironmentVariableV2"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYes项目ID,获取方式请参见API参考的“附录 > 获取项目ID”章节。
instance_idYes实例ID
variable_valueYes变量值支持英文字母、数字、英文格式的下划线、中划线,斜线(/)、点、冒号,1 ~ 255个字符。
env_variable_idYes环境变量的编号

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 behavioral burden. It does disclose one genuinely valuable side effect — that changing a variable used as an API backend address triggers re-publication of every API referencing it — but says nothing about permissions, reversibility, or failure behavior when the variable is in use.

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

Conciseness5/5

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

Two short sentences, purpose first and the side-effect caveat second, with no redundant restatement of the name or schema. Every clause carries information.

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

Completeness3/5

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

For a four-parameter mandatory-update tool with no annotations and no output schema, the description covers purpose and the key side effect but omits auth requirements, error conditions, and what a successful call returns or confirms. Adequate but with clear gaps given the tool's mutating nature.

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%: project_id, instance_id, env_variable_id, and variable_value (including character set and 1–255 length) are all documented in the schema. The description adds no parameter-level 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.

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 (修改环境变量 / modify environment variable) and the [ROMA] prefix scopes it to the ROMA service. The update verb distinguishes it from the Create/Delete/Show environment-variable siblings, though it does not name them explicitly.

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 by the verb — there is no explicit statement of when to prefer this tool over ShowDetails or Create, and no stated prerequisites such as the variable needing to exist or required permissions. The re-publish warning hints at when the tool has broader impact, but that is a consequence, not routing 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