Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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": {} }
  • Initialization of the AutoScalingClient (asgClient) used by the tool handler.
    const asgClient = new AutoScalingClient({});
  • Import of AutoScalingClient and DescribeAutoScalingGroupsCommand used in the tool.
    import { AutoScalingClient, DescribeAutoScalingGroupsCommand, DescribeScalingActivitiesCommand } from "@aws-sdk/client-auto-scaling";

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Bhavesh8890/MCP-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server