Skip to main content
Glama

mrs__CreateCluster

Create a Huawei Cloud MRS cluster and optionally submit a job within it, specifying network, billing, node, and component settings; not compatible with Sahara.

Instructions

[MRS] 创建一个MRS集群,并在集群中提交一个作业。该接口不兼容Sahara。

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": {
      "available_zone_id": "<available_zone_id>",
      "billing_type": "<billing_type>",
      "cluster_name": "<cluster_name>",
      "cluster_version": "<cluster_version>",
      "component_list": "<component_list>",
      "data_center": "<data_center>",
      "project_id": "<project_id>",
      "safe_mode": "<safe_mode>",
      "subnet_id": "<subnet_id>",
      "subnet_name": "<subnet_name>",
      "vpc": "<vpc>",
      "vpc_id": "<vpc_id>"
    },
    "name": "mrs__CreateCluster"
  }
}

Input Schema

NameRequiredDescriptionDefault
vpcYes子网所在VPC名称。
tagsNo集群的标签信息。
vpc_idYes子网所在VPC ID。
add_jobsNo创建集群时可同时提交作业,当前版本暂时只支持新增一个作业。
safe_modeYesMRS集群运行模式。
subnet_idYes子网ID。通过VPC管理控制台获取子网ID:
login_modeNo集群登录方式。默认设置为1。
project_idYes项目编号。获取方法,请参见[获取项目ID](https://support.huaweicloud.com/api-mrs/mrs_02_0011.html)。
data_centerYes集群区域信息,请参见[终端节点及区域](https://support.huaweicloud.com/api-mrs/mrs_02_0003.html)。
node_groupsNo节点列表信息。
subnet_nameYes子网名称。
volume_sizeNoMaster和Core节点数据磁盘存储空间。为增大数据存储容量,创建集群时可同时添加磁盘。可以根据如下应用场景合理选择磁盘存储空间大小:
volume_typeNoMaster和Core节点的磁盘存储类别,目前支持SATA、SAS、SSD和GPSSD。磁盘参数可以使用volume_type和volume_size表示,也可以使用多磁盘相关的参数表示。volume_type和volume_size这两个参数如果与多磁盘参数同时出现,系统优先读取volume_type和volume_size参数。建议使用多磁盘参数。 - SATA:普通IO - SAS:高IO - SSD:超高IO - GPSSD:通用型SSD
billing_typeYes集群的计费模式。
cluster_nameYes集群名称,不允许相同。
cluster_typeNo集群类型。
core_node_numNoCore节点数量。
component_listYes服务组件安装列表信息。
core_node_sizeNoCore节点的实例规格,例如:c3.4xlarge.2.linux.bigdata。实例规格详细说明请参见[MRS所使用的弹性云服务器规格](https://support.huaweicloud.com/api-mrs/mrs_01_9006.html)和[MRS所使用的裸金属服务器规格](https://support.huaweicloud.com/api-mrs/mrs_01_9001.html)。 该参数建议从MRS控制台的集群创建页面获取对应区域对应版本所支持的规格。
log_collectionNo集群创建失败时,是否收集失败日志。
cluster_versionYes集群版本。
master_node_numNoMaster节点数量。启用集群高可用功能时配置为2,不启用集群高可用功能时配置为1。MRS 3.x版本暂时不支持该参数配置为1。
master_node_sizeNoMaster节点的实例规格,例如:c3.4xlarge.2.linux.bigdata。MRS当前支持主机规格的配型由CPU+内存+Disk共同决定。实例规格详细说明请参见[MRS所使用的弹性云服务器规格](https://support.huaweicloud.com/api-mrs/mrs_01_9006.html)和[MRS所使用的裸金属服务器规格](https://support.huaweicloud.com/api-mrs/mrs_01_9001.html)。 该参数建议从MRS控制台的集群创建页面获取对应区域对应版本所支持的规格。
task_node_groupsNoTask节点列表信息。
available_zone_idYes可用分区ID。
bootstrap_scriptsNo配置引导操作脚本信息。
security_groups_idNo集群安全组的ID。
cluster_admin_secretNo配置MRS Manager管理员用户的密码。
cluster_master_secretNo配置访问集群节点的root密码。当“login_mode”配置为“0”时,请求消息体中包含cluster_master_secret字段。
core_data_volume_sizeNo该参数为多磁盘参数,表示Core节点数据磁盘存储空间。为增大数据存储容量,创建集群时可同时添加磁盘。
core_data_volume_typeNo该参数为多磁盘参数,表示Core节点数据磁盘存储类别,目前支持SATA、SAS、SSD和GPSSD。
enterprise_project_idNo企业项目ID。
node_public_cert_nameNo密钥对名称。用户可以使用密钥对方式登录集群节点。当“login_mode”配置为“1”时,请求消息体中包含node_public_cert_name字段。
core_data_volume_countNo该参数为多磁盘参数,表示Core节点数据磁盘个数。
master_data_volume_sizeNo该参数为多磁盘参数,表示Master节点数据磁盘存储空间。为增大数据存储容量,创建集群时可同时添加磁盘。
master_data_volume_typeNo该参数为多磁盘参数,表示Master节点数据磁盘存储类别,目前支持SATA、SAS、SSD和GPSSD。
master_data_volume_countNo该参数为多磁盘参数,表示Master节点数据磁盘个数。取值只能是1。

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 provided, so the description carries the full burden. It does disclose that a job can be submitted alongside creation, but it says nothing about permissions, cost provisioning, whether creation is asynchronous or idempotent, or that 'shutdown_cluster' can destroy the cluster after the job runs. For a costly, long-running mutation tool, these are significant omissions.

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 place the core action first and then add the secondary effect. It is front-loaded and contains no filler, although it omits so much that it is under-specified, not concise.

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 a 37-parameter, 12-required mutation tool with no annotations and no output schema, this description is far too thin. It never mentions the resource-sizing, secret, or billing parameters, nor how to handle the failure modes of a partially created cluster.

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 coverage is 100% across 37 parameters, so the schema already documents all individual fields, including nested node groups, autoscaling, and scripts. The description adds no meaning beyond that; the baseline of 3 is appropriate when the schema does the heavy lifting.

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 uses a specific verb and resource ('creates an MRS cluster') and adds a secondary effect ('and submits a job in the cluster'), which separates it from siblings such as mrs__ExpandCluster, mrs__CreateClusterTag, and mrs__CreateAutoScalingPolicy. However, it doesn't differentiate this tool from the many other cloud-provider CreateCluster tools in the catalog beyond the MRS tag.

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?

The description includes only an incompatibility note ('not compatible with Sahara') and says nothing about when to choose this tool over alternatives such as mrs__CreateExecuteJob for job submission alone. There is no mention of prerequisites such as the required VPC, subnet, project, or availability-zone inputs, or of the billing implications of creating a cluster.

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