Skip to main content
Glama

list_cloudformation_stacks

Retrieve and display AWS CloudFormation stacks along with their current operational status for monitoring and management purposes.

Instructions

Lists CloudFormation stacks and their status.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler function that lists CloudFormation stacks using ListStacksCommand with specific status filters, maps the response, and returns JSON.
    if (name === "list_cloudformation_stacks") { const command = new ListStacksCommand({ StackStatusFilter: ["CREATE_COMPLETE", "UPDATE_COMPLETE", "ROLLBACK_COMPLETE", "CREATE_IN_PROGRESS", "UPDATE_IN_PROGRESS"] }); const response = await cfnClient.send(command); const stacks = response.StackSummaries?.map(s => ({ StackName: s.StackName, StackStatus: s.StackStatus, DriftInformation: s.DriftInformation, CreationTime: s.CreationTime })) || []; return { content: [{ type: "text", text: JSON.stringify(stacks, null, 2) }] }; }
  • src/index.ts:768-771 (registration)
    Tool registration in ListToolsRequestSchema, defining name, description, and empty input schema.
    name: "list_cloudformation_stacks", description: "Lists CloudFormation stacks and their status.", inputSchema: { "type": "object", "properties": {} } },
  • Input schema definition: empty object, no parameters required.
    inputSchema: { "type": "object", "properties": {} } },
  • CloudFormationClient instantiation used by the handler.
    const cfnClient = new CloudFormationClient({});
  • Import of CloudFormationClient and ListStacksCommand.
    import { CloudFormationClient, ListStacksCommand } from "@aws-sdk/client-cloudformation";

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