Skip to main content
Glama

as__ListAllScalingV2Policies

Lists and filters Auto Scaling policies for a tenant with pagination and sorting by policy name, trigger condition, or creation time; supports resource, alarm, and enterprise project filters.

Instructions

[AS] 根据输入条件过滤查询弹性伸缩策略,支持查询当前租户下全量伸缩策略。查询结果分页显示。可根据伸缩资源ID,伸缩资源类型,伸缩策略名称,伸缩策略ID,告警ID,企业项目ID,起始行号,记录数,排序方式等条件进行过滤查询。若不加过滤添加默认查询该租户下最多20条伸缩策略信息。

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

Input Schema

NameRequiredDescriptionDefault
limitNo查询记录数,默认20,最大100。
orderNo排序顺序ASC:升序;DESC:降序
sort_byNo排序方法POLICY_NAME:根据策略名称排序;TRIGGER_CONDITION:根据触发条件排序,如升序下,告警策略最先,其余根据最近一次触发时间升序排列;CREATE_TIME:根据策略的创建时间排序。
alarm_idNo告警ID,即告警规则的ID。
project_idYes租户标识。
start_numberNo查询的起始行号,默认为0。
scaling_policy_idNo伸缩策略ID。
scaling_policy_nameNo伸缩策略名称。
scaling_policy_typeNo策略类型。 告警策略:ALARM ,定时策略:SCHEDULED, 周期策略:RECURRENCE
scaling_resource_idNo伸缩组ID。
enterprise_project_idNo企业项目ID。当scaling_resource_type指定为:SCALING_GROUP传入all_granted_eps时:华为云帐号和拥有全局权限的IAM用户可以查询该用户所有的伸缩组对应的伸缩策略。授予部分企业项目的IAM用户,可以查询该用户所有授权企业项目下的伸缩组对应的伸缩策略。说明:如果授予部分企业项目的IAM用户拥有超过100个企业项目,则只能返回有权限的前100个企业项目对应伸缩组的伸缩策略列表。当scaling_resource_type指定为:BANDWIDTH传入all_granted_eps时:华为云帐号和拥有全局权限的IAM用户可以查询该用户所有带宽对应的伸缩策略。授予部分企业项目的IAM用户,可以查询该用户所有授权企业项目下的带宽对应的伸缩策略,带宽在all_granted_eps场景下返回策略请参见[《EIP接口参口》查询带宽列表](https://support.huaweicloud.com/api-eip/eip_apiBandwidth_0002.html)。不指定scaling_resource_type当传入all_granted_eps时:华为云帐号和拥有全局权限的IAM用户可以查询该用户所有的伸缩组和带宽对应的伸缩策略。授予部分企业项目的IAM用户,可以查询该用户所有授权企业项目下的伸缩组和带宽对应的伸缩策略。说明:如果授予部分企业项目的IAM用户拥有超过100个企业项目,则只能返回有权限的前100个企业项目对应伸缩组的伸缩策略列表;带宽在all_granted_eps场景下返回策略请参见[《EIP接口参口》查询带宽列表](https://support.huaweicloud.com/api-eip/eip_apiBandwidth_0002.html)。
scaling_resource_typeNo伸缩资源类型:伸缩组:SCALING_GROUP;带宽:BANDWIDTH

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.4/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 tenant scoping, pagination, and the default unfiltered limit of 20 records, but says nothing about authorization requirements, return shape, or how the enterprise_project_id 'all_granted_eps' semantics affect results (that detail sits only in the schema).

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?

Three sentences, front-loaded with the core purpose and pagination behavior, with the filter list and default-limit note following. The filter enumeration is somewhat redundant with the schema but not wasteful enough to hurt readability.

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 12-parameter, no-annotation, no-output-schema list tool, the description covers purpose, pagination, and default behavior but omits return format and authorization context. Adequate for correct invocation, but the absence of annotations means more behavioral detail would have been valuable.

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 the schema already documents all 12 parameters in depth. The description only re-lists filter categories (resource ID/type, policy name/ID, alarm ID, project ID, start row, limit, order) without adding format or edge-case 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 and resource (filter-query elastic scaling policies) and adds scope ('all scaling policies under the current tenant'). It is clear what the tool does, but it never contrasts with the similarly named siblings as__ListScalingV2Policies or as__ListScalingPolicies, so the 'ListAll' distinction is only implied.

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?

Usage is implied by the enumeration of optional filters and the note that an unfiltered call returns at most 20 policies. However, there is no explicit when-to-use guidance or statement of when a sibling list tool would be preferred, leaving the agent to infer the choice.

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