Skip to main content
Glama

kafka__ResizeKafkaInstance

Resizes a Kafka instance by changing broker count, product specification, or storage capacity; API-based resizing currently supports only pay-per-use instances.

Instructions

[KAFKA] 实例规格变更。当前通过调用API,只支持按需实例进行实例扩容。

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

Input Schema

NameRequiredDescriptionDefault
oper_typeYes变更类型。
project_idYes项目ID,获取方式请参见[获取项目ID](kafka-api-0036212547.xml)。
tenant_ipsNo指定的内网IP地址,仅支持指定IPv4。
instance_idYes实例ID。
publicip_idNo实例绑定的弹性IP地址的ID。
new_broker_numNo当oper_type参数为horizontal时,该参数有效。
new_product_idNo垂直扩容时的新产品ID。
new_storage_spaceNo扩容后的存储空间。
second_tenant_subnet_idNo实例扩容时新节点使用备用子网的id。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden and it does disclose the pay-per-use-only and expansion-only restriction, which is genuinely useful behavior beyond the schema. However, it says nothing about whether this is a synchronous or asynchronous job, whether the instance restarts, cost implications, or irreversibility — all critical for a mutation tool.

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?

Two short sentences, front-loaded with the verb and resource, then the key constraint — no filler. The second sentence is slightly awkwardly phrased ('当前通过调用API') but still earns its place by conveying the restriction.

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?

For a nine-parameter, unannotated, no-output-schema mutation tool, the description covers the eligibility constraint but omits execution semantics (async/job id, downtime) and the meaning of the required oper_type. It is adequate to avoid misuse on instance type, but not complete enough to call confidently.

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 all nine parameters are already documented in the schema, including the oper_type-driven conditions for new_broker_num and new_product_id. The description adds no additional meaning about oper_type values (horizontal/vertical), which is the single most important input for choosing parameters, so it stays at the baseline.

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 names a specific verb and resource ('[KAFKA] 实例规格变更' = resize Kafka instance specs), so the agent knows exactly what operation is performed. It does not differentiate itself from the sibling kafka__ResizeEngineInstance, leaving ambiguity about which resize tool applies to which instance flavor.

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?

It states a concrete precondition: only pay-per-use (按需) instances are supported, and only scale-up (扩容) — implicitly excluding scale-down and prepaid instances. That is a real when-to-use/when-not-to-use constraint, though it names no alternative tool for the excluded cases.

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