Skip to main content
Glama

kafka__CreateInstanceUser

Creates a Kafka instance user to allow clients to connect to SASL-enabled Kafka instances.

Instructions

[KAFKA] 创建Kafka实例的用户,用户可连接开启SASL的Kafka实例。 2023年7月15日前创建的Kafka实例,一个实例最多创建20个用户。2023年7月15日及以后创建的Kafka实例,一个实例最多创建500个用户。

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>",
      "project_id": "<project_id>"
    },
    "name": "kafka__CreateInstanceUser"
  }
}

Input Schema

NameRequiredDescriptionDefault
user_descNo用户描述。
user_nameNo用户名称。
project_idYes项目ID,获取方式请参见[获取项目ID](kafka-api-0036212547.xml)。
instance_idYes实例ID。
user_passwdNo用户密码。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose a genuinely useful constraint — per-instance user quotas of 20 (pre-2023-07-15 instances) versus 500 (later instances) — but says nothing about permission requirements, what happens when the quota is hit, duplicate user-name handling, or password rules. For a mutation tool with zero annotation coverage this is partial but not adequate disclosure.

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?

The description is front-loaded with the operation and its purpose, then appends the quota rules as supporting detail. The date-conditional quota sentence is somewhat lengthy but carries real information, so little 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?

This is a create operation with a fully documented five-parameter schema, a stated purpose, and explicit capacity limits — the main non-obvious things an agent needs before invoking it. With no output schema the description is not required to explain return values, and remaining gaps (error semantics, password policy) are secondary for a create tool of this shape.

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 instance_id, project_id, user_name, user_passwd, and user_desc are already documented in the schema. The description adds no meaning about password format, uniqueness of user_name, or the project/instance path relationship, so the baseline of 3 applies.

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 and resource ('创建Kafka实例的用户' / create a user for a Kafka instance) and adds what the created user is for ('用户可连接开启SASL的Kafka实例'). It does not distinguish itself from the adjacent UpdateInstanceUser or BatchDeleteInstanceUsers, so sibling differentiation is missing, but the core operation is unambiguous.

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 and no named alternative (e.g., UpdateInstanceUser for modifying an existing user, ResetUserPasswrod for password changes). The only contextual hint is that the resulting user connects to SASL-enabled instances, which is implied applicability rather than explicit guidance on choosing this tool over its siblings.

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