roma__CreateProperty
Creates a property for a ROMA Connect service, defining its data type, required status, and validation limits for API or integration use.
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": {
"data_type": "<data_type>",
"instance_id": "<instance_id>",
"project_id": "<project_id>",
"property_name": "<property_name>",
"required": "<required>",
"service_id": "<service_id>"
},
"name": "roma__CreateProperty"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | 最大值,当data_type为integer或number时必填 | |
| min | No | 最小值,当data_type为integer或number时必填 | |
| step | No | 步长,当data_type为integer或number时必填 | |
| unit | No | 属性单位 | |
| method | No | 访问模式(兼容20.0,R属性可读,W属性可写,E属性可执行) | |
| required | Yes | 是否必填 0-非必填 1-必填 | |
| data_type | Yes | 属性数据类型,枚举值大小写敏感;number格式为数字,范围±1.0 x 10^-28 to ±7.9228 x 10^28;sting为字符串;integer为整数;datetime为时间,格式为yyyyMMddTHHmmss;json为自定义json格式 | |
| enum_dict | No | 当数据类型为boolean枚举值时填写json格式数据,形如"enum_dict":{"0":"xxx","1":"xxx"} | |
| enum_list | No | string的枚举值数组,使用逗号分隔 | |
| max_length | No | 字符串最大长度,当data_type为string, datetime, json时必填,自动向下取整 | |
| project_id | Yes | 项目ID,获取方式请参见《ROMA Connect API参考》的“附录 > 获取项目ID”章节。 | |
| service_id | Yes | 服务ID | |
| description | No | 属性描述,长度0-200 | |
| instance_id | Yes | 实例ID | |
| property_name | Yes | 属性名称,首位必须为字母,支持大小写字母,数字,中划线及下划线,长度2-50 |