Skip to main content
Glama

roma__CreateProductTopic

Creates a product-level topic in ROMA with a versioned topic name and publish or subscribe permission for a specified product, project, and instance.

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>",
      "name": "<name>",
      "permission": "<permission>",
      "product_id": "<product_id>",
      "project_id": "<project_id>",
      "version": "<version>"
    },
    "name": "roma__CreateProductTopic"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes产品级主题名称<br>Topic类格式必须以“/”进行分层,区分每个类目。其中第一个为用户自定义的版本号;第二个已经规定好,为${deviceId}通配设备ID;第三个为用户自定义的topic类名(即本字段)。Topic类组成即为:/${version}/${deviceId}/${customizePart}。简单来说,Topic类:/v1/${deviceId}/customizePart是具体Topic:/v1/deviceid1/customizePart1和/v1/deviceid2/customizePart2等的集合。
versionYes版本号,输入2-50个字符。值以字母或数字开头和结尾。仅允许使用字母,数字,中划线和点号。
permissionYes主题权限 0-发布 1-订阅
product_idYes产品ID
project_idYes项目ID,获取方式请参见《ROMA Connect API参考》的“附录 > 获取项目ID”章节。
descriptionNo描述
instance_idYes实例ID

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, yet it only implies a create/mutating operation. It says nothing about permissions required, whether creation is idempotent, what happens on duplicate topic names, or what the response contains for a tool with 7 parameters.

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?

The definition is a single bracketed tag plus a five-character phrase, with zero wasted words. It is front-loaded but so terse that conciseness comes at the cost of usefulness for a multi-parameter creation call.

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 7-parameter (6 required) mutating tool with no annotations and no output schema, the description provides essentially nothing an agent needs beyond the name. It omits prerequisites, side effects, and any indication of what a successful call returns.

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 the schema already documents the topic naming hierarchy, version format, and the 0-publish/1-subscribe permission enum in detail. The description adds no 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.

Purpose3/5

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

The description names a specific verb and resource ("添加产品主题" / add product topic), so the basic operation is identifiable. However, it offers no differentiation from the numerous sibling tools that act on the same resource family (UpdateProductTopic, DeleteProductTopic, ListProductTopics, CreateMqsInstanceTopic), leaving the agent to infer scope from the name alone.

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 prerequisite (instance/product must exist, project ID retrieval), and no pointer to the sibling that lists or updates topics instead. The agent gets no help deciding between this and CreateMqsInstanceTopic or UpdateProductTopic.

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