Skip to main content
Glama

roma__DebugRule

Tests a ROMA rule expression against sample data using the specified instance and project to validate rule behavior before deployment.

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

Input Schema

NameRequiredDescriptionDefault
test_dataNo测试的被规则执行的数据
project_idYes项目ID,获取方式请参见《ROMA Connect API参考》的“附录 > 获取项目ID”章节。
instance_idYes实例ID
test_rule_expressNo测试的规则

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?

No annotations are provided, so the description carries the full burden, and it discloses nothing: not whether the debug run has side effects, whether the rule must already exist, whether test_data is required or optional in practice, nor what the response contains. For a debug/execute-style operation this is a serious gap.

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?

The text is short but that is under-specification rather than conciseness; there is a single bracketed product tag and a noun phrase with no front-loaded verb, scope, or outcome. Nothing is wasteful, but almost nothing is said.

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 four-parameter tool with no annotations and no output schema depends entirely on the description for behavioral context, and the description supplies none. An agent would have to guess the semantics of test_rule_express versus test_data and the effect of invoking the tool.

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 each of the four parameters (project_id, instance_id, test_data, test_rule_express) documented in the schema itself. The description adds no additional meaning, which is acceptable given the schema already does the work — baseline 3.

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] 规则调试" is essentially a restatement of the tool name DebugRule plus a product tag. It signals a debugging action on rules but does not specify what debugging entails (executing a rule expression against test data? validating syntax?) or how it differs from siblings like roma__DebugApiV2.

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, when-not-to-use, or prerequisite guidance at all. An agent cannot tell from the text whether this should be called before CreateRule/UpdateRule to validate a rule, or only after one exists.

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