Skip to main content
Glama

as__ExecuteScalingPolicy

Immediately execute, pause, or resume a specified auto-scaling policy so you can control scaling actions on a resource. Use it to start or halt policy-driven scaling on demand.

Instructions

[AS] 立即执行或启用或停止一个指定弹性伸缩策略。当伸缩组、伸缩策略状态处于INSERVICE时,伸缩策略才能被正确执行,否则会执行失败。

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": {
      "action": "<action>",
      "project_id": "<project_id>",
      "scaling_policy_id": "<scaling_policy_id>"
    },
    "name": "as__ExecuteScalingPolicy"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYes执行或启用或停止伸缩策略操作的标识。执行:execute。启用:resume。停止:pause。
project_idYes租户标识。
scaling_policy_idYes伸缩策略ID。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden; it usefully discloses the INSERVICE precondition and the failure mode if unmet. However, it does not explain what 'execute' actually triggers (an immediate one-off scaling action?), whether the effect is reversible or idempotent, or what permissions are required, and its mention of enable/stop contradicts the schema's single-valued enum.

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?

Two short sentences with the core action front-loaded and no filler. The 'enable or stop' clause, however, is not just surplus but misleading given the schema's execute-only enum, so the brevity comes at a cost to accuracy.

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

Completeness3/5

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

For a three-parameter mutation tool with no annotations and no output schema, the description covers purpose and the key precondition but omits the outcome of a successful call (scaling activity? policy state change?) and the meaning of enable/stop relative to the schema. It is minimally adequate rather than complete.

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%: action, project_id and scaling_policy_id are each documented with examples and an enum, so the schema does the heavy lifting. The description adds no extra parameter meaning beyond what is already structured, so the baseline of 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 names a specific resource (a designated scaling policy) and specific actions (immediately execute / enable / stop), so the agent knows the general operation. It does not differentiate from siblings such as as__PauseScalingPolicy or as__ResumeScalingPolicy, and the claim that it can 'enable or stop' conflicts with the schema enum that only permits action=execute, leaving some ambiguity about the tool's true scope.

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 provides one usable trigger condition: the scaling group and policy must both be INSERVICE for execution to succeed. It gives no guidance on when to choose this tool versus the dedicated Pause/Resume tools or the batch variants, so selection between siblings is left to inference.

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