Skip to main content
Glama

rocketmq__CreateRocketMqMigrationTask

Creates a metadata migration task that transfers self-hosted RocketMQ or RabbitMQ metadata, including topics, queues, exchanges, bindings, and consumer groups, to Huawei Cloud.

Instructions

[ROCKETMQ] 新建元数据迁移任务。

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>",
      "overwrite": "<overwrite>",
      "project_id": "<project_id>",
      "type": "<type>"
    },
    "name": "rocketmq__CreateRocketMqMigrationTask"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes迁移任务名称,名称规则参考创建实例。
typeYes迁移任务类型,分为自建RocketMQ上云(rocketmq)、自建RabbitMQ上云(rabbitToRocket)
queuesNoRabbitMQ队列元数据列表,迁移任务类型为自建RabbitMQ上云(rabbitToRocket)时必填。
vhostsNoRabbitMQ vhost元数据列表,迁移任务类型为自建RabbitMQ上云(rabbitToRocket)时必填。
bindingsNoRabbitMQ binding元数据列表,迁移任务类型为自建RabbitMQ上云(rabbitToRocket)时必填。
exchangesNoRabbitMQ交换机元数据列表,迁移任务类型为自建RabbitMQ上云(rabbitToRocket)时必填。
overwriteYestrue开启同名覆盖,会对已有的同名元数据的配置进行修改,false时当Topic或group已存在则会报错。
project_idYes项目ID,获取方式请参见[获取项目ID](hrm-api-0011.xml)。
instance_idYes实例ID。
topicConfigTableNoRocketMQ Topic 元数据,键为Topic名,值为topic配置,迁移任务类型为自建RocketMQ上云(rocketmq)时必填。
subscriptionGroupTableNoRocketMQ消费组元数据,键为消费组名,值为消费组配置,迁移任务类型为自建RocketMQ上云(rocketmq)时必填。

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?

With no annotations, the description carries the full behavioral burden yet discloses nothing: not that this is a mutating creation operation, not the permissions/tenant scoping implied by project_id and instance_id, not what overwrite=true will modify on existing same-named metadata, and not what the call returns. For a 11-parameter mutation with two conditional modes this is a serious gap.

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?

A single short sentence with no padding, so nothing is wasted, but the [ROCKETMQ] prefix is redundant given the tool name and the sentence is so terse it reaches under-specification rather than conciseness.

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?

The tool is complex: 11 parameters, five nested object types, two mutually exclusive migration modes, no annotations and no output schema. A one-line description leaves an agent without any of the context needed to pick the right mode or understand the operation's effects.

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 each nested field (topicConfigTable, subscriptionGroupTable, queues, vhosts, bindings, exchanges) is documented with its conditional requirement in the schema itself. 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.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

"新建元数据迁移任务" essentially restates the tool name CreateRocketMqMigrationTask plus a [ROCKETMQ] tag. It does identify the verb and resource but adds no scope, no differentiation from the List/Delete migration-task siblings, and no hint that this tool covers two distinct migration flavors.

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 the mutual exclusivity between the 'rocketmq' and 'rabbitToRocket' modes that a caller must choose before invoking. The only usage-relevant fact (type selection) lives entirely in the schema, not the description.

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