Skip to main content
Glama

as__UpdateScalingPolicy

Modify an existing Auto Scaling policy to change its name, type, schedule, alarm trigger, cooldown, or scaling action so Huawei Cloud resources scale as needed.

Instructions

[AS] 修改指定弹性伸缩策略。

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>",
      "scaling_policy_id": "<scaling_policy_id>"
    },
    "name": "as__UpdateScalingPolicy"
  }
}

Input Schema

NameRequiredDescriptionDefault
alarm_idNo告警ID,即告警规则的ID,当scaling_policy_type为ALARM时该项必选,此时scheduled_policy不生效。创建告警策略成功后,会自动为该告警ID对应的告警规则的alarm_actions字段增加类型为autoscaling的告警触发动作。告警ID通过查询云监控告警规则列表获取,详见《云监控API参考》的“查询告警规则列表”。
project_idYes租户标识。
cool_down_timeNo冷却时间,取值范围0-86400,默认为300,单位是秒。
scheduled_policyNo定时、周期任务策略
scaling_policy_idYes伸缩策略ID。
scaling_policy_nameNo策略名称(1-64字符),可以用中文、字母、数字、下划线、中划线的组合。
scaling_policy_typeNo策略类型。告警策略:ALARM(与alarm_id对应);定时策略:SCHEDULED(与scheduled_policy对应);周期策略:RECURRENCE(与scheduled_policy对应)
scaling_policy_actionNo策略执行具体动作

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.9/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 entire behavioral burden, yet it discloses nothing about mutation semantics: whether this is a partial or full replacement update, what happens to scheduled_policy or alarm_id when omitted, whether running scaling activities are affected, or whether the policy must be paused first. For a write operation on nested configuration objects this is a significant gap.

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?

A single short sentence with zero wasted wording and the resource front-loaded. It is efficient, though its brevity reflects under-specification rather than disciplined concision.

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?

With 8 parameters, nested objects, no annotations, and no output schema, the description should at minimum explain the update semantics and the relationship between scaling_policy_type and the conditional fields. As written it supplies nothing an agent could not get from the name and schema.

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 objects (scheduled_policy, scaling_policy_action) are thoroughly documented inline, including enum meanings and the mutual exclusivity of instance_number and instance_percentage. The description itself adds no meaning beyond the schema, so the 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 (修改, modify) and resource (弹性伸缩策略, scaling policy) scoped to a specified policy, so the basic operation is unambiguous. It gives no differentiation from close siblings such as as__UpdateScalingV2Policy or gaussdb__UpdateAutoScalingPolicy, which a caller must disambiguate from the name alone.

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?

There is no guidance on when to use this tool versus the V2 update variant, nor on prerequisites such as the policy needing to exist or be paused. Usage context is only implied by the verb 'modify', leaving the agent to infer everything from the sibling names.

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