Skip to main content
Glama

create_topic

Create up to 100 Kafka topics in one batch with optional partitions, replication factors, and configs; validate first unless confirmed.

Instructions

Create 1 to 100 Kafka topics in one call through items, each with optional partition count, replication factor and topic-level configs. Omitted values use broker defaults. Existing topics are refused rather than modified. Creating one topic is an items array of length one.

No topic is created unless confirm is true; otherwise the broker only validates the requests. One confirm covers the whole batch, and creation is not atomic: topics created before a later item failed stay, because Kafka cannot roll them back. Results follow items order, each carrying index with result or error.

Partition counts cannot be reduced later. Requires Kafka CREATE permission.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYesThe topics to create, 1 to 100 of them. Creating one topic is an array of length one. Duplicate topic names are refused before anything is created.
confirmNoOptional. When false or omitted, nothing is created: every item is validated by the broker and the response describes what would happen. Must be true to actually create. One confirm covers the whole batch.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
atomicYes
failedYes
appliedYes
resultsYes
succeededYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full behavioral burden and does so richly: confirm=false means validation-only, one confirm covers the whole batch, creation is non-atomic with partial results persisted, results follow items order with per-item index, and the call requires Kafka CREATE permission. These are exactly the traits an agent cannot infer from the schema.

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?

Front-loaded with the core action and count range, then organized into short paragraphs on defaults, the confirm gate, non-atomicity, and permissions. Slightly redundant in restating the existing-topic refusal and the confirm rule that the schema also states, but no sentence is wasted.

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

Completeness5/5

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

Output schema is present and the description still usefully notes that results mirror items order with index plus result-or-error. Combined with the permission requirement and partial-failure caveat, an agent has everything needed to invoke and interpret this batch mutation correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3, but the description adds meaning beyond the schema by explaining the batch-level semantics of confirm (one flag governs all items) and that omitted values fall back to broker defaults. It does not add new per-item syntax detail beyond what the schema already documents.

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

Purpose5/5

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

States a precise verb and resource scoped to a batch ('Create 1 to 100 Kafka topics in one call through items'), and the scope immediately separates it from siblings like delete_topic, add_partitions and alter_topic_config. Adds the key constraint that existing topics are refused rather than modified.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explains the confirm-gate workflow and clarifies that a single topic is just an items array of length one, which tells the agent exactly how to invoke it. It notes partition counts can only grow, hinting at add_partitions as the later alternative, but never names a sibling tool or gives an explicit when-to-use-this-vs-that comparison.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.