Skip to main content
Glama

roma__CreateDestination

Adds a target data source to a ROMA rule by specifying the destination type, instance, project, rule ID, and MQS topic for data forwarding or device integration.

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": {
      "destination_type": "<destination_type>",
      "instance_id": "<instance_id>",
      "project_id": "<project_id>",
      "rule_id": "<rule_id>",
      "topic": "<topic>"
    },
    "name": "roma__CreateDestination"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNo目标数据源标签
tokenNo目标端数据源token
topicYes目标数据源主题,从MQS服务中获取已有topic
app_idNo应用ID,目标端为0时需明确对方的APP_ID
serverNo目标端数据源服务,连接地址
rule_idYes规则ID
passwordNo目标数据源密码
user_nameNo目标数据源用户名
project_idYes项目ID,获取方式请参见《ROMA Connect API参考》的“附录 > 获取项目ID”章节。
instance_idYes实例ID
mqs_sasl_sslNo目标端数据源MQS的SASL字段是否需要支持SSL加密
destination_nameNo目标数据源名称
destination_typeYes操作类型,枚举值:0-目标端为本ROMA实例内MQS,; 7-目标端为设备

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.4/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 it discloses almost nothing: no indication that this is a mutating create, no permission or credential requirements, no idempotency or duplicate-name behavior. Only the word "添加" hints at creation.

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 phrase with no wasted words, but the brevity reflects under-specification rather than disciplined editing. Nothing is front-loaded beyond the name-level purpose.

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?

For a 13-parameter mutation tool with 5 required fields, no annotations and no output schema, a one-line phrase leaves the agent without any of the context it needs. Critical facts such as required credentials, the meaning of destination_type 0 vs 7 in operational terms, and side effects are absent.

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% and all 13 parameters, including the destination_type enum and the three path parameters, are documented in the schema itself. The description adds no meaning beyond that, which is the expected baseline when the schema does the work.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"添加目标数据源" states a verb (add) and a resource (destination data source), so the basic purpose is recoverable. However it is a bare restatement with no scope detail, and it does not distinguish this from sibling operations such as roma__CreateDatasourceInfo or the corresponding delete tool.

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 tool, what preconditions must hold (e.g. an existing rule_id, project and instance), or which alternative to pick for other data source types. The agent must infer all routing from the 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