Skip to main content
Glama

mrs__RunJobFlow

Creates a Huawei Cloud MRS cluster, submits one or more jobs to it, and optionally deletes the cluster after job completion for automated, temporary big-data processing.

Instructions

[MRS] 创建一个MRS集群并提交作业,并支持作业完成后删除集群,支持MRS 1.8.9及以上集群版本使用。使用接口前,您需要先获取下的资源信息。

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": {
      "availability_zone": "<availability_zone>",
      "cluster_name": "<cluster_name>",
      "cluster_type": "<cluster_type>",
      "cluster_version": "<cluster_version>",
      "components": "<components>",
      "login_mode": "<login_mode>",
      "manager_admin_password": "<manager_admin_password>",
      "node_groups": "<node_groups>",
      "project_id": "<project_id>",
      "region": "<region>",
      "safe_mode": "<safe_mode>",
      "steps": "<steps>",
      "subnet_name": "<subnet_name>",
      "vpc_name": "<vpc_name>"
    },
    "name": "mrs__RunJobFlow"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNo集群的标签信息。
stepsYes作业列表。
eip_idNo当“eip_address”配置时,该参数必须配置,用于表示绑定的弹性公网IP的ID。可通过在VPC服务的“网络控制台 > 弹性公网IP和带宽 > 弹性公网IP”页面单击待绑定的弹性公网IP,在基本信息中获取“ID”。
regionYes集群所在区域信息,请参见[终端节点](https://support.huaweicloud.com/api-mrs/mrs_02_0003.html)。
log_uriNo集群日志转储至OBS的具体路径。
vpc_nameYes子网所在VPC名称。
safe_modeYesMRS集群运行模式。
subnet_idNo子网ID。通过VPC管理控制台获取子网ID:
componentsYes组件名称列表,用逗号分隔。支持的组件请参见[获取MRS集群信息](https://support.huaweicloud.com/api-mrs/mrs_02_9001.html)页面的“MRS服务支持的组件”内容。
login_modeYes节点登录方式。
project_idYes项目编号。获取方法,请参见[获取项目ID](https://support.huaweicloud.com/api-mrs/mrs_02_0011.html)。
charge_infoNo节点组的计费类型,Master和Core节点组是和集群的计费类型一致,Task节点组可以和集群的计费类型不同。
eip_addressNo与MRS集群绑定的弹性公网IP,可实现使用弹性公网IP访问Manager的目的。该弹性公网IP必须已经创建且与集群在同一区域。
node_groupsYes组成集群的节点组信息。
subnet_nameYes子网名称。
template_idNo当集群类型为CUSTOM时,用于指定节点部署所使用的模板。
cluster_nameYes集群名称,不允许相同。
cluster_typeYes集群类型,取值范围:
is_dec_projectNo说明是否为专属云的资源,默认为false。
log_collectionNo集群创建失败时,是否收集失败日志。
cluster_versionYes集群版本。例如:MRS 3.1.0。
availability_zoneYes可用分区名称,不支持多AZ集群。
bootstrap_scriptsNo配置引导操作脚本信息。
component_configsNo集群组件自定义配置。
node_keypair_nameNo密钥对名称。用户可以使用密钥对方式登录集群节点。
node_root_passwordNo配置访问集群节点的root密码。
security_groups_idNo集群安全组的ID。
delete_when_no_stepsNo作业完成后是否自动删除集群,默认为false。
external_datasourcesNo部署Hive和Ranger等组件时,可以关联数据连接,将元数据存储于关联的数据库
enterprise_project_idNo企业项目ID。
manager_admin_passwordYes配置Manager管理员用户的密码。
mrs_ecs_default_agencyNo集群节点默认绑定的委托名称,固定为MRS_ECS_DEFAULT_AGENCY。
auto_create_default_security_groupNo是否要创建MRS集群默认安全组,默认为false。

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?

No annotations are supplied, so the description carries the whole burden. It does disclose real behavior: the tool creates a cluster, submits a job, and can delete the cluster after job completion, plus a minimum cluster version. However it omits critical traits for a create-and-run operation — long-running/asynchronous nature, billing implications, required IAM permissions, and what identifiers are returned.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first sentence is front-loaded and efficient, packing purpose, cluster-deletion behavior and version support into one clause. The second sentence is truncated and dangling, so it consumes space without conveying a usable prerequisite.

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 33-parameter, 14-required, nested-object creation tool with no annotations and no output schema, the description is thin. It does not explain async polling, whether the returned cluster/job IDs are needed for follow-up calls, cost/quotas, or how the nested job and node-group blocks relate — all of which an agent must know before invoking it.

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 33 parameters, including the deeply nested node_groups, steps and charge_info structures, are already documented in the schema. The description adds no meaning beyond that — its only parameter-adjacent note is the vague pointer to 'resource information' you must gather first. Baseline 3 applies 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 names a specific compound action — create an MRS cluster and submit a job — plus the optional auto-deletion of the cluster afterwards and a supported-version constraint (MRS 1.8.9+). That is enough for an agent to tell it apart from read-only siblings such as ShowJobExeListNew or StopJob, though it does not explicitly distinguish it from the similarly named CreateExecuteJob sibling.

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 states a precondition ('before using the API you need to obtain the following resource information') and a version prerequisite, which implies when the tool is applicable. But the prerequisite sentence is truncated and incomplete ('获取下的资源信息'), and the description never names an alternative tool or states when NOT to use this one instead of CreateExecuteJob.

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