list_auto_scaling_groups
Retrieve AWS Auto Scaling Groups and their capacity configurations to monitor and manage scaling resources.
Instructions
Lists Auto Scaling Groups with their capacity settings.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_auto_scaling_groups"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:2224-2236 (handler)Handler for 'list_auto_scaling_groups' tool: sends DescribeAutoScalingGroupsCommand to asgClient, maps response to include group name, sizes, capacity, instance count, and returns JSON.
if (name === "list_auto_scaling_groups") { const command = new DescribeAutoScalingGroupsCommand({}); const response = await asgClient.send(command); const asgs = response.AutoScalingGroups?.map(g => ({ AutoScalingGroupName: g.AutoScalingGroupName, MinSize: g.MinSize, MaxSize: g.MaxSize, DesiredCapacity: g.DesiredCapacity, Instances: g.Instances?.length })) || []; return { content: [{ type: "text", text: JSON.stringify(asgs, null, 2) }] }; - src/index.ts:736-739 (registration)Registration of the 'list_auto_scaling_groups' tool in the ListToolsRequestSchema handler, including name, description, and empty input schema.
{ name: "list_auto_scaling_groups", description: "Lists Auto Scaling Groups with their capacity settings.", inputSchema: { "type": "object", "properties": {} } - src/index.ts:73-73 (helper)Initialization of the AutoScalingClient (asgClient) used by the tool handler.
const asgClient = new AutoScalingClient({}); - src/index.ts:40-40 (helper)Import of AutoScalingClient and DescribeAutoScalingGroupsCommand used in the tool.
import { AutoScalingClient, DescribeAutoScalingGroupsCommand, DescribeScalingActivitiesCommand } from "@aws-sdk/client-auto-scaling";