Skip to main content
Glama

kafka__ResizeEngineInstance

Resizes on-demand Kafka instances by changing specifications and expanding storage through the Huawei Cloud API, enabling capacity adjustments without recreating the instance.

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": {
      "engine": "<engine>",
      "instance_id": "<instance_id>",
      "oper_type": "<oper_type>",
      "project_id": "<project_id>"
    },
    "name": "kafka__ResizeEngineInstance"
  }
}

Input Schema

NameRequiredDescriptionDefault
engineYes消息引擎。kafka
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

B3.1/5.0
Behavior2/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 for a mutating operation, and it discloses only the pay-per-use eligibility rule. It says nothing about whether the resize is asynchronous, whether the instance must be running/healthy, whether it is reversible or how long it takes, or what permissions are required — all material facts for a spec change that can reboot brokers.

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, no filler, with the engine tag and the action stated up front followed by the eligibility caveat. The '[KAFKA]' prefix is mildly redundant given the tool name is already prefixed, but nothing else wastes space.

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 a 10-parameter mutating resize with no annotations and no output schema, the description is too thin: it does not explain the resize modes implied by the parameters, prerequisite lookups (e.g. ListEngineProducts/ShowEngineInstanceExtendProductInfo), or the async nature of the operation. An agent could form the call from the schema alone but would lack the operational context to use it safely.

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%, including the conditional relationship between oper_type=horizontal and new_broker_num, so the schema already carries parameter meaning. The description adds only the word '扩容' (scale-up), which implies oper_type is an expansion rather than a shrink, but contributes no extra detail about oper_type values, new_product_id, tenant_ips, or publicip_id.

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 operation on a specific resource (Kafka instance specification change / scale-up) and is prefixed with the engine, so an agent can tell it is a resize call rather than a create/list/delete call. It does not differentiate itself from the very similar sibling kafka__ResizeKafkaInstance, leaving genuine ambiguity about which resize endpoint to pick.

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

Usage Guidelines3/5

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

It gives one real eligibility constraint: via the API only pay-per-use (on-demand) instances can be scaled up, which tells the agent when the call will be rejected. It offers no exclusions relative to siblings and no guidance on choosing between this and kafka__ResizeKafkaInstance or the product-info lookup tools that would normally precede a resize.

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