Skip to main content
Glama

kafka__SendKafkaMessage

Send a specified message to a Kafka topic on a Huawei Cloud Kafka instance using instance, project, topic, and message details.

Instructions

[KAFKA] 在控制台发送指定消息到Kafka实例

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": {
      "action_id": "<action_id>",
      "body": "<body>",
      "instance_id": "<instance_id>",
      "project_id": "<project_id>",
      "property_list": "<property_list>",
      "topic": "<topic>"
    },
    "name": "kafka__SendKafkaMessage"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYes消息内容
topicYesKafka的topic
action_idYes动作ID,生产消息对应的action_id为send。
project_idYes项目ID,获取方式请参见[获取项目ID](kafka-api-0036212547.xml)。
instance_idYes实例ID
property_listYestopic的分区信息等

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full behavioral burden and provides almost nothing: it does not state required permissions, what happens if the topic/partition does not exist, whether delivery is synchronous, or what the response looks like. The only behavioral signal is the implicit fact that this is a write operation, which the verb "发送" already conveys.

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

Conciseness4/5

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

A single short, front-loaded sentence with zero padding. It is efficient, though its brevity borders on under-specification rather than being a model of structured clarity.

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

Completeness3/5

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

For a six-required-parameter mutation tool with no annotations and no output schema, the definition is thin — it explains neither return behavior nor failure modes. The rich input schema partially compensates, but the description itself leaves real gaps for an agent deciding how to invoke this correctly.

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 coverage is 100%, so all six parameters are already documented in the schema, and the baseline is 3. The description adds no additional parameter meaning — it says nothing about the required property_list partition structure, the path parameters, or the action_id convention beyond what the schema states.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

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

The description states a specific verb+resource combination — "发送指定消息到Kafka实例" (send the given message to a Kafka instance) — which cleanly separates it from read/inspection siblings such as ShowPartitionMessage or ListMessageDiagnosisReports. It does not explicitly name a sibling alternative, so it falls just short of a 5.

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 guidance on when to use this versus other send-style tools (rocketmq__SendDlqMessage, dis__SendRecords) or versus Kafka read/inspection siblings. No prerequisites, no note that action_id must be "send", and no exclusions are given.

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