Skip to main content
Glama

roma__CreateNotification

Creates device operation notifications for a ROMA application instance and subscribes online, offline, add, delete, or change events to a specified MQS topic.

Instructions

[ROMA] 该接口用于创建指定实例下对应的应用下的设备操作,订阅到指定的topic

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>",
      "project_id": "<project_id>",
      "status": "<status>",
      "topic": "<topic>",
      "type": "<type>"
    },
    "name": "roma__CreateNotification"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYes通知类型 0-设备上线通知 1-设备下线通知 2-设备添加通知 3-设备删除通知 4-设备变更通知
topicYes通知发送的主题名,该主题需要在MQS存在
app_idYes通知归属的应用ID
statusYes启停状态 0-启用 1-停用
project_idYes项目ID,获取方式请参见《ROMA Connect API参考》的“附录 > 获取项目ID”章节。
instance_idYes实例ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.2/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 disclosure burden. It hints at a side effect ('subscribe to the specified topic') but says nothing about permissions required, idempotency of repeated creates, what happens if the topic is missing, or what the call returns.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single short sentence, but it is poorly structured and reads as an awkward translation, burying the key concept of 'notification subscription' behind 'device operation'. Brevity here reflects under-specification rather than efficiency.

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?

This is a six-required-parameter creation/mutation tool with no annotations and no output schema, so the description should explain the created resource and its effects. It instead provides only one vague sentence, leaving the agent without enough to call it confidently.

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 includes enum meanings for type and status plus a note that the topic must already exist in MQS. The description adds no additional meaning beyond the schema, so the baseline of 3 applies.

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 sentence says it 'creates a device operation under the app of the specified instance' and 'subscribes to the specified topic', but never names the actual resource being created (a notification/subscription) even though the tool is CreateNotification. The wording is muddled and does nothing to distinguish it from siblings such as roma__UpdateNotification or roma__DeleteNotification.

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 (e.g. that the topic must already exist in MQS), and no routing to UpdateNotification or ListNotification. An agent must infer the entire usage context from the name 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