Skip to main content
Glama

roma__CreateDevice

Creates a device in Huawei Cloud ROMA Connect from app, product, node, and project identifiers for device registration and management.

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>",
      "device_name": "<device_name>",
      "instance_id": "<instance_id>",
      "node_id": "<node_id>",
      "product": "<product>",
      "project_id": "<project_id>"
    },
    "name": "roma__CreateDevice"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNo标签
app_idYes应用ID
statusNo设备状态 0启用 1禁用,不填时默认为0启用
node_idYes设备物理编号,通常使用MAC或者IMEI号,支持英文大小写,数字,下划线和中划线,长度2-64
productYes产品
passwordNo设备密码,输入要求:至少1数字,1大写字母,1小写字母,1特殊字符(~!@#$%^&*()-_=+|[{}];:<>/?),长度8-32个字符
user_nameNo设备用户名,支持英文大小写、英文符号(-)及数字,长度10-50
project_idYes项目ID,获取方式请参见《ROMA Connect API参考》的“附录 > 获取项目ID”章节。
descriptionNo备注
device_nameYes设备名称,支持中文、中文标点符号()。;,:“”、?《》及英文大小写、数字及英文符号()_,#.?'-@%&!, 长度2-64
instance_idYes实例ID
parent_device_idNo父设备ID,无父设备时不填写,自动向下取整

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 provided, so the description must disclose behavior itself, but for a 12-parameter mutating operation it says nothing about permissions, idempotency, the effect of the product nesting, or what happens on duplicate node_id. Zero behavioral information is conveyed.

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 fragment with no padding and nothing to trim, but the terseness reflects under-specification rather than disciplined conciseness. There is no structure, no front-loaded context, and no actionable detail.

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 mutation tool with 12 parameters, 6 required, a nested product object, and no annotations or output schema, the definition is grossly incomplete. An agent cannot tell what is created, what constraints matter, or what a successful response contains.

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 12 parameters including the nested product object, password policy, and node_id constraints are already documented in the schema. The description adds no additional meaning, which is acceptable at this coverage level but earns no credit.

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 "[ROMA] 创建设备" only restates the tool name roma__CreateDevice and adds no scope, resource detail, or differentiation from siblings such as roma__CreateDeviceGroup or roma__BatchAddDeviceToGroup. An agent learns nothing beyond what the identifier already tells it.

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. It does not say when a device group or batch-add tool should be preferred, nor that an existing product/app/instance must already exist before creating a device.

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