Skip to main content
Glama

list_sns_topics

Retrieve all Amazon SNS topics from your AWS account to manage messaging services and monitor topic configurations.

Instructions

Lists all SNS topics.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Executes ListTopicsCommand via SNSClient to list all SNS topics and returns their ARNs as JSON.
    if (name === "list_sns_topics") { const command = new ListTopicsCommand({}); const response = await snsClient.send(command); const topics = response.Topics?.map(t => ({ TopicArn: t.TopicArn })) || []; return { content: [{ type: "text", text: JSON.stringify(topics, null, 2) }] }; }
  • src/index.ts:686-692 (registration)
    Registers the list_sns_topics tool in ListTools handler with description and empty input schema.
    name: "list_sns_topics", description: "Lists all SNS topics.", inputSchema: { type: "object", properties: {} } },
  • Initializes the SNSClient instance used by the list_sns_topics handler.
    const snsClient = new SNSClient({});
  • Imports SNSClient and ListTopicsCommand required for the tool implementation.
    import { SNSClient, ListTopicsCommand, ListSubscriptionsCommand } from "@aws-sdk/client-sns";

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