Skip to main content
Glama

kafka__CreateInstanceTopic

Creates a topic in a specified Kafka instance, letting you define partitions, replicas, retention, sync replication, and other topic settings.

Instructions

[KAFKA] 该接口用于向Kafka实例创建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": {
      "id": "<id>",
      "instance_id": "<instance_id>",
      "project_id": "<project_id>"
    },
    "name": "kafka__CreateInstanceTopic"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYestopic名称,长度为3-200,以字母开头且只支持大小写字母、中横线、下划线、点以及数字。
partitionNotopic分区数,设置消费的并发数。
project_idYes项目ID,获取方式请参见[获取项目ID](kafka-api-0036212547.xml)。
topic_descNotopic描述
instance_idYes实例ID。
replicationNo副本数,配置数据的可靠性。
retention_timeNo消息老化时间。默认值为72。
sync_replicationNo是否开启同步复制,开启后,客户端生产消息时相应的也要设置acks=-1,否则不生效,默认关闭。
sync_message_flushNo是否使用同步落盘。默认值为false。同步落盘会导致性能降低。
topic_other_configsNotopic配置

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.8/5.0
Behavior2/5

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

Annotations are absent, so the description carries the full burden. It only says it creates a topic; it omits that topic names are immutable after creation, that partitions/replicas have default behavior, whether the call is idempotent, and what happens on name collision. Key behavioral defaults (retention_time=72, sync_replication=false, sync_message_flush=false cause performance degradation) live only in the schema, not the description.

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?

The description is a single short sentence — concise but under-informative rather than efficiently structured. It is front-loaded with the correct verb and resource but wastes the whole budget on restating the name.

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?

For a 10-parameter mutation tool with no annotations and no output schema, the description is far too thin. It should state prerequisites, whether the topic name must be unique, defaults for optional fields, and what the call returns (topic ID or detail).

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 each of the 10 parameters is already documented in detail. The description adds no parameter meaning beyond the schema, which is the baseline expectation when the schema is complete.

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?

Description states a specific verb (创建/create) and resource (Kafka instance Topic) with the scope being an existing Kafka instance. It's clear what the tool does, though it doesn't differentiate itself from siblings like UpdateInstanceTopic or CreateKafkaTopicQuota — those are distinguishable by name alone, but the description offers no explicit contrast.

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., instance must exist and be running), and no mention of alternatives such as kafka__UpdateInstanceTopic. The agent must infer everything from the tool name and schema.

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