Skip to main content
Glama

mrs__CreateScalingPolicy

Create or update an MRS auto-scaling policy for a task node group, including scaling rules, capacity limits, resource plans, and optional automation scripts.

Instructions

[MRS] 对弹性伸缩规则进行编辑。

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": {
      "auto_scaling_policy": "<auto_scaling_policy>",
      "cluster_id": "<cluster_id>",
      "node_group": "<node_group>",
      "project_id": "<project_id>"
    },
    "name": "mrs__CreateScalingPolicy"
  }
}

Input Schema

NameRequiredDescriptionDefault
cluster_idYes集群ID。获取方法,请参见[获取集群ID](https://support.huaweicloud.com/api-mrs/mrs_02_9001.html)。
node_groupYes弹性伸缩规则适用的节点类型,当前只支持task节点。
project_idYes项目编号。获取方法,请参见[获取项目ID](https://support.huaweicloud.com/api-mrs/mrs_02_0011.html)。
auto_scaling_policyYes弹性伸缩规则。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

D1.7/5.0
Behavior1/5

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

No annotations are supplied, so the description carries the full burden of behavioral disclosure and delivers none. It does not state whether an existing policy is overwritten, whether the call is idempotent, what permissions are required, or what side effects (node scaling, script execution, cool-down) the operation triggers — all material for a mutation tool with nested rule and script payloads.

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?

A single short sentence with zero padding is technically concise, but here brevity comes at the cost of substance; there is no front-loaded scope statement or differentiation from siblings. It is terse rather than efficiently structured.

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

Completeness1/5

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

This is a complex mutation tool with four required parameters, deeply nested objects (rules, exec_scripts, resources_plans), no annotations, and no output schema. A one-line 'edit' statement is wholly inadequate for that complexity — an agent cannot tell what the call does or how it relates to the Create/Update/Delete/Show siblings.

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% and the nested schema already documents cluster_id, project_id, node_group, and the full auto_scaling_policy structure in detail. The description adds nothing beyond that, so the baseline of 3 applies — the schema does all the work.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description says '[MRS] 对弹性伸缩规则进行编辑' — 'edit the auto scaling policy' — but the tool name is CreateScalingPolicy, and siblings include both CreateAutoScalingPolicy and UpdateAutoScalingPolicy. The verb '编辑' (edit/modify) does not tell an agent whether this creates a new policy or modifies an existing one, so the resource is named but the action remains ambiguous against the very siblings it must be distinguished from.

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

Usage Guidelines1/5

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

There is no when-to-use guidance whatsoever: no prerequisites, no statement of which cluster/node-group states are valid, and no pointer to UpdateAutoScalingPolicy, CreateAutoScalingPolicy, or ShowAutoScalingPolicy. Given four closely related sibling tools, the absence of any selection guidance is a serious gap.

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