Skip to main content
Glama

as__ListScalingActivityV2Logs

Query detailed auto-scaling activity logs with filters for time range, activity type, status, and pagination to inspect instance scaling, ELB migration, or standby events.

Instructions

[AS] 根据输入条件过滤查询伸缩活动日志,支持查询实例伸缩、ELB迁移、实例备用等类型活动。查询结果分页显示。查询伸缩活动日志V2版本与V1版本区别在于,V2版本展示了更详细的实例伸缩日志,如ELB迁移日志,实例备用日志信息。可根据起始时间,截止时间,起始行号,记录数,伸缩活动类型等作为条件过滤查询。若不加过滤条件默认查询最多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>",
      "scaling_group_id": "<scaling_group_id>"
    },
    "name": "as__ListScalingActivityV2Logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNo查询的伸缩活动类型(查询多类型使用逗号分隔):
limitNo查询记录数,默认20,最大100。
log_idNo伸缩活动日志ID
statusNo查询的伸缩活动状态:SUCCESS:成功;FAIL:失败;DOING:伸缩中
end_timeNo查询的截止时间,格式是“yyyy-MM-ddThh:mm:ssZ”。
project_idYes项目ID。
start_timeNo查询的起始时间,格式是“yyyy-MM-ddThh:mm:ssZ”。
start_numberNo查询的起始行号,默认为0。
scaling_group_idYes伸缩组ID。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does disclose pagination, the default/maximum record behavior, and the richer field coverage of V2. It does not address read-only safety explicitly or any permission/authorization requirements, leaving a small gap for a query tool.

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?

Purpose is front-loaded and the V1/V2 differentiation is a single useful sentence. The paragraph is slightly dense and repeats the filtering concept, but every sentence contributes actionable information with no filler.

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

Completeness4/5

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

For a 9-parameter read tool with no output schema and no annotations, the description covers filtering, pagination defaults, and the V2 detail advantage. It would be fully complete with a note on what the returned log entries contain, but the essentials an agent needs to call it correctly are present.

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 every parameter including enums for type and status. The description adds the default-20 cap and enumerates key filters (start/end time, start row, record count, activity type), but omits status and log_id and adds no syntax or format detail beyond the schema. Baseline 3 applies.

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

Purpose5/5

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

States a specific verb and resource (filter-query scaling activity logs, V2), explicitly covering instance scaling, ELB migration, and standby activity types. It also distinguishes itself from the V1 sibling by explaining that V2 exposes more detailed logs. An agent can identify this tool without opening the schema.

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

Usage Guidelines4/5

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

Provides clear selection context: it explains when V2 is preferable over V1 (more detailed logs like ELB migration and standby), and what happens with no filters (default returns up to 20 entries). It stops short of an explicit 'use ListScalingActivityLogs instead when...' routing statement, which keeps it below a 5.

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