Skip to main content
Glama

kafka__UpdateKafkaUserClientQuotaTask

Submits a task to modify user- and client-level throttling quotas for a Kafka instance and returns the job ID to track the change.

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

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.2/5.0
Behavior3/5

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

没有提供 annotations,因此描述要承担全部的行为说明责任。描述确实补充了一条有用的 annotations 没有提供的信息:该任务以异步方式提交,成功后会返回一个 job_id,这样代理就知道接下来需要一个轮询步骤。但它没有说明所需的权限、未传字段是重置为默认还是保持不变,也没有说明当 user、client 以及各自的 default 标记发生冲突时会出现什么情况。

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?

只有一句简练的话,把动作和返回值放在最前面,没有多余内容。'[KAFKA]' 这个标签略显多余,但能低成本地把该工具归入对应产品类别。

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?

对于一个有 8 个参数、且 schema 描述完整的工具来说,这些内容是可以接受的,而且关于 job_id 返回值的说明在一定程度上弥补了缺少输出 schema 的问题。但它仍然没有说明异步工作流,也没有说明用户、客户端以及各自 default 标记的组合如何生效,而这是该工具最需要代理理解的部分。

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 描述覆盖率达到 100%,所以每个参数的含义都已经写在 schema 里,包括单位为 B/s 的速率和 default 标记。描述没有再补充参数层面的信息,比如*default 标记与显式传值之间如何相互影响;当 schema 已经承担了这些说明时,3 分是正确的基础分。

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?

名字里的动词(提交/修改)和资源(用户、客户端级别的流控任务)都很具体,并把作用域限定在 Kafka 实例上,因此能和同级的创建、删除、查询类工具区分开,因为那些工具的名字采用了不同的动词。它没有说明与 CreateKafkaUserClientQuotaTask 的具体区别,所以只能给 4 分,而不是 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?

描述没有说明何时该用这个工具、何时该改用 CreateKafkaUserClientQuotaTask 或 DeleteKafkaUserClientQuotaTask,也没有提到需要哪些前置条件,比如流控是否必须已经存在。关于 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