Skip to main content
Glama

roma__CreateProduct

Create a product in Huawei Cloud ROMA Connect by specifying instance, project, protocol type, manufacturer, and model details.

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": {
      "app_id": "<app_id>",
      "instance_id": "<instance_id>",
      "manufacturer_id": "<manufacturer_id>",
      "manufacturer_name": "<manufacturer_name>",
      "model": "<model>",
      "name": "<name>",
      "product_type": "<product_type>",
      "project_id": "<project_id>",
      "protocol_type": "<protocol_type>"
    },
    "name": "roma__CreateProduct"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes产品名称,创建产品时租户内唯一,长度最大64,仅支持中文,英文字母,数字,下划线和中划线
modelYes产品型号
app_idYes应用ID
versionNo模型版本
project_idYes项目ID,获取方式请参见《ROMA Connect API参考》的“附录 > 获取项目ID”章节。
data_formatNo产品的数据格式 0-JSON 1-USER_DEFINED
descriptionNo产品描述,长度0-200
device_typeNo产品的设备类型(默认Default)
instance_idYes实例ID
template_idNo关联产品模板ID(使用产品模板创建产品时使用,否则为空),自动向下取整
product_typeYes产品类型,0-普通产品(不支持子设备) 1-网关产品
protocol_typeYes产品的协议类型 0-mqtt 2-modbus 4-opcua
manufacturer_idYes产品供应商ID
manufacturer_nameYes厂商名称

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.1/5.0
Behavior1/5

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

No annotations are provided, so the description must carry the full burden of behavioral disclosure, but it says nothing. It does not state that this is a mutating creation operation; it does not mention permission or authentication requirements; and it does not say whether the product name must be tenant-unique or what happens on conflict—all of which are critical for a 9-required-parameter write tool.

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 text is only four characters long and contains no fluff, but this is not appropriate brevity: it is under-specification. There is no structure to speak of and nothing is front-loaded beyond the bare verb.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a creation tool with 14 parameters (9 required), no annotations, and no output schema, a four-word description is far from complete. The rich schema partially compensates, but required fields, creation semantics, and the template_id path (which decides whether a template is used) go unmentioned.

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?

The input schema has 100% description coverage: every parameter, including the enum and path parameters, is already documented there. The description adds no meaning beyond the schema, but under the high-coverage rule the baseline is 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] 创建产品" restates the tool name CreateProduct verbatim, with no additional scope. It conveys only a verb and resource, and does not distinguish this tool from siblings such as roma__CreateProductTemplate or roma__CreateProductTopic.

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?

No sentence describes when this tool should be used or which alternative applies, such as when to create a product from a template rather than from scratch. The agent must infer the usage from the name and from the sibling names 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