Skip to main content
Glama

roma__CreateSource

Creates a source data source for a ROMA Connect rule by binding instance, project, product, topic, and optional device settings.

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>",
      "product_id": "<product_id>",
      "project_id": "<project_id>",
      "rule_id": "<rule_id>",
      "topic": "<topic>"
    },
    "name": "roma__CreateSource"
  }
}

Input Schema

NameRequiredDescriptionDefault
topicYes主题,当设备ID为空时为产品级主题,设备ID不为空时为设备级主题
rule_idYes规则ID
device_idNo设备ID,自动向下取整,不填为全部设备
is_base64No是否payload使用base64,0-是 1-否
product_idYes产品ID,自动向下取整
project_idYes项目ID,获取方式请参见《ROMA Connect API参考》的“附录 > 获取项目ID”章节。
instance_idYes实例ID
contain_device_infoNo是否包含设备信息是否包含设备信息,0-是 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?

No annotations are supplied, so the description bears the full disclosure burden for a mutation tool, yet it says nothing about side effects, permission requirements, idempotency, or what happens when a source already exists. The single phrase "添加" is the only behavioral signal, and it duplicates the name.

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 a single short phrase, so it is not verbose, but it is under-specified rather than concise. There is no front-loaded explanation of what is created or how the required parameters interact.

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 create operation with 8 parameters, 5 of them required, no annotations, and no output schema, the description leaves the agent without any of the context needed to invoke it confidently. It is substantially inadequate relative to the tool's complexity.

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%, so all 8 parameters (topic, rule_id, device_id, is_base64, product_id, project_id, instance_id, contain_device_info) are already documented in the schema. The description adds no meaning beyond that, which is the baseline expectation when the schema does the work.

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 reads "[ROMA] 添加源数据源", which essentially restates the tool name CreateSource with a vendor prefix. "源数据源" (source data source) is redundant phrasing rather than a precise resource definition, and nothing distinguishes this from sibling tools like roma__CreateDatasourceInfo or roma__CreateDestination.

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 guidance, no prerequisites, and no mention of alternatives such as roma__CreateDatasourceInfo. The agent must infer usage entirely from the name and the 8-parameter schema.

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