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.
Input Schema
TableJSON 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";