Skip to main content
Glama

as__UpdateScalingV2Policy

Update a specified Auto Scaling policy, including its scaling resource type, to adjust how alarm-based or scheduled scaling actions apply to groups or bandwidth.

Instructions

[AS] 修改指定弹性伸缩策略。修改弹性伸缩策略V2版本与V1版本的区别在于,V2版本支持修改伸缩资源类型。

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__UpdateScalingV2Policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
alarm_idNo告警ID,即告警规则的ID,当scaling_policy_type为ALARM时该项必选,此时scheduled_policy不生效。创建告警策略成功后,会自动为该告警ID对应的告警规则的alarm_actions字段增加类型为autoscaling的告警触发动作。告警ID通过查询云监控告警规则列表获取,详见《云监控API参考》的“查询告警规则列表”。
project_idYes租户标识。
descriptionNo伸缩策略描述(1-256个字符)
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_resource_idNo伸缩资源ID,伸缩组唯一标识或带宽唯一标识。如果scaling_resource_type为SCALING_GROUP,对应伸缩组唯一标识。如果scaling_resource_type为BANDWIDTH,对应带宽唯一标识。
scaling_policy_actionNo策略执行具体动作。
scaling_resource_typeNo伸缩资源类型。伸缩组:SCALING_GROUP。带宽:BANDWIDTH。
interval_alarm_actionsNo

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 supplied, so the description carries the full burden. It never states whether this is a full replace or a partial patch, what happens to fields omitted from the request, what permissions or prior state are required, or what the response contains — all significant gaps for a 12-parameter mutation with nested objects.

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 with the action front-loaded and the V2 differentiator second. There is no filler, though the brevity is partly the cause of the missing update-semantics detail rather than pure efficiency.

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 mutation tool with 12 parameters, nested scheduled_policy and scaling_policy_action objects, and no annotations or output schema, the description should say how update semantics work and which parameters interact. It provides only the V1/V2 contrast, leaving the most consequential behavior unexplained.

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 92%, so the enum values, ranges, and conditional requirements (e.g. alarm_id required for ALARM, scheduled_policy for SCHEDULED/RECURRENCE) are already documented in the schema. The description adds no parameter-level meaning beyond that, so the baseline 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 (modify an auto-scaling policy) and explicitly distinguishes the V2 tool from its V1 sibling by noting that V2 can modify the scaling resource type. That is enough for an agent to tell it apart from as__UpdateScalingPolicy, though it does not spell out that the V1 tool is the alternative.

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 V2-vs-V1 distinction implies when this tool is the right choice (when scaling_resource_type needs changing), but there is no explicit 'use this when / do not use' statement, no mention of prerequisites, and no warning that only the specified fields are updated while others are preserved.

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