Skip to main content
Glama

kafka__CreateKafkaUserClientQuotaTask

Creates a Kafka user- or client-level throttling quota task for a Huawei Cloud instance, returning a job ID to track the rate-limit configuration.

Instructions

[KAFKA] 该接口用于向Kafka实例提交创建用户、客户端级别的流控任务,若成功则返回流控任务的job_id。

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__CreateKafkaUserClientQuotaTask"
  }
}

Input Schema

NameRequiredDescriptionDefault
userNo用户名。
clientNo客户端ID。
project_idYes项目ID,获取方式请参见[获取项目ID](kafka-api-0036212547.xml)。
instance_idYes实例ID。
user-defaultNo是否使用用户默认设置。
client-defaultNo是否使用客户端默认设置。
consumer-byte-rateNo消费上限速率(单位为B/s)。
producer-byte-rateNo生产上限速率(单位为B/s)。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden, and it does disclose one meaningful behavior: the call is asynchronous and returns a job_id on success. However, it says nothing about required permissions, whether the quota takes effect only after the job completes, what happens on conflicting or duplicate quota submissions, or how the 'default' flags interact with explicit values.

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 front-loaded sentence with no filler; the Kafka tag and purpose lead, and the return behavior is appended in the same sentence. It is efficient but so terse that nothing beyond purpose survives.

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 an 8-parameter mutation tool with no annotations and no output schema, the description is thin: it never explains the user-default/client-default versus explicit user/client/rate combinations, nor any error or polling behavior for the returned job_id. An agent would have to infer the mutually exclusive parameter patterns on its own.

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 every one of the 8 parameters including units (B/s) and the default flags is already documented in the schema. The description only echoes that the quota is user- and client-level, adding no semantics beyond the structured fields, 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: submit a user/client-level flow-control (quota) creation task to a Kafka instance. It is clearly distinct from the Delete/Update/Show quota siblings in verb, though it does not explicitly name a sibling or contrast with kafka__CreateKafkaTopicQuota, which operates on a different quota dimension.

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 instead of the Update/Delete quota siblings, nor on prerequisites such as whether the instance must be running or whether quotas must be absent. The only implied usage signal is that it is an async task that returns a job_id.

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