Skip to main content
Glama

ecs__ListResizeFlavors

Lists ECS flavors that a specified cloud server or source flavor can resize to, helping you check valid resize targets before changing specifications.

Instructions

[ECS] 变更规格时,部分规格的云服务器之间不能互相变更。您可以通过本接口,通过指定弹性云服务器规格,查询该规格可以变更的规格列表。

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

Input Schema

NameRequiredDescriptionDefault
limitNo单页面可显示的flavor条数最大值,默认是1000。
markerNo以单页最后一条flavor的ID作为分页标记。
sort_dirNo升序/降序排序,默认值为:asc。asc
sort_keyNo排序字段。默认值为“flavorid”。flavorid
project_idYes项目ID。
instance_uuidNo进行规格切换的云服务器ID,UUID格式。(instance_uuid,source_flavor_id and source_flavor_name 不能都为空)
source_flavor_idNo进行规格切换的云服务器源规格ID。(instance_uuid,source_flavor_id and source_flavor_name 不能都为空)
source_flavor_nameNo进行规格切换的云服务器源规格名称。(instance_uuid,source_flavor_id and source_flavor_name 不能都为空)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden. It usefully discloses the business constraint that certain flavors cannot be mutually resized, which explains why this endpoint exists. However, it omits the crucial requirement that one of instance_uuid/source_flavor_id/source_flavor_name must be supplied, as well as auth needs and return/pagination behavior.

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 sentences: the first establishes the compatibility constraint, the second states the action. It is efficient and front-loads the context, with little wasted wording, though it could be more direct.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter tool with full schema coverage and no output schema, the description conveys the tool's purpose and the key compatibility constraint. The main remaining gap is not clarifying which of the source identifier parameters is needed, but the schema covers that, so overall it is adequate.

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 8 parameters are already documented in the schema, including the mutually exclusive source identifier requirement. The description adds only the high-level notion of specifying a flavor, not more syntactic or format detail, so baseline 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: query the list of flavors to which a specified flavor can be resized ('查询该规格可以变更的规格列表'). It also gives the context that some flavors cannot be resized to one another. However, it does not name or distinguish itself from sibling flavor-listing tools such as ListFlavors or rds__ListFlavorsResize.

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?

The opening clause '变更规格时' (when changing specifications) implies the resize scenario, giving an implicit usage context. But it offers no explicit when-to-use vs alternatives guidance or exclusions relative to the many sibling flavor-listing tools, leaving the agent to infer.

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