Skip to main content
Glama

roma__UpdateProductTopic

Updates a ROMA product topic's name, version, permission, or description to keep device topic definitions aligned with current messaging requirements.

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>",
      "topic_id": "<topic_id>",
      "version": "<version>"
    },
    "name": "roma__UpdateProductTopic"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.2/5.0
Behavior1/5

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

No annotations are supplied, so the description carries the full burden of behavioral disclosure, and it discloses nothing. It does not say whether this is a full replace or partial update (relevant given the 7 required fields, including topic_id and version), what happens to existing topic permissions, whether it is reversible, or what permissions are needed for this mutating call.

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, front-loaded fragment with zero padding, so nothing is wasted. But the brevity comes from omission rather than efficiency, and a bracketed product tag is the only structure present.

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 mutating tool with 8 parameters, 7 of them required, no annotations, and no output schema, the description is entirely inadequate. An agent gets no information about effects, required context, or failure modes from the prose alone.

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 the schema already documents all 8 parameters including the topic naming format, version character rules, and the 0/1 permission enum. 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?

"更新产品主题" names a verb (update) and a resource (product topic), so the basic operation is identifiable. However, it is essentially a restatement of the tool name with no scope detail, and it gives no hint of how it differs from siblings such as roma__UpdateProduct, roma__UpdateProductTemplate, or roma__UpdateMqsInstanceTopic.

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 versus the many other update-style siblings in the catalog. Nothing states prerequisites (instance/project/product context) or when an agent should prefer this over template or MQS topic updates.

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