Skip to main content
Glama

roma__UpdateRule

Update an existing ROMA rule by modifying its name, status, SQL query fields or conditions, description, or data parsing setting for a specified instance and project.

Instructions

[ROMA] 修改规则

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>",
      "rule_id": "<rule_id>"
    },
    "name": "roma__UpdateRule"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo规则名称,支持英文大小写,数字,下划线和中划线,长度1-64
statusNo规则状态 0-启用 1-停用,不填写时默认为0-启用
rule_idYes规则ID
sql_fieldNoSQL查询字段
sql_whereNoSQL查询条件
project_idYes项目ID,获取方式请参见《ROMA Connect API参考》的“附录 > 获取项目ID”章节。
descriptionNo描述,长度0-200
instance_idYes实例ID
data_parsing_statusNo数据解析状态,0-启用 1-停用,不填写时默认为1-禁用

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

D1.9/5.0
Behavior1/5

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

With no annotations supplied, the description carries the full behavioral burden for a mutation tool and delivers nothing. It does not state that this is a partial-update (unspecified fields presumably left unchanged), does not say which fields are actually mutable, does not mention permissions or instance/project scoping requirements, and gives no sense of the response.

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

Conciseness2/5

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

It is short with no wasted words, but this is under-specification rather than conciseness. A four-character phrase is not an appropriate size for a nine-parameter mutation operation, and there is no structure to front-load.

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

Completeness1/5

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

A nine-parameter mutating tool with three required path identifiers, no annotations, and no output schema demands substantial description, and this provides none. An agent cannot determine scope, side effects, or update semantics from "修改规则".

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% — all nine parameters carry inline descriptions including enum meanings for status and data_parsing_status. The description adds nothing beyond the schema, but the baseline of 3 applies when the schema already documents every parameter thoroughly.

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?

"[ROMA] 修改规则" translates to "modify rule" — it restates the tool name UpdateRule with only a product prefix added. There is no indication of what aspect of the rule is modified (settings, SQL fields, status) or how it differs from roma__CreateRule, roma__DeleteRule, or roma__ShowRule.

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?

No when-to-use guidance, no prerequisites, no exclusions, and no mention of the sibling tools that handle creation, deletion, or inspection of the same resource. The agent must infer everything from the tool name alone.

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