Skip to main content
Glama

list_secrets

Retrieve names of AWS Secrets Manager secrets to manage sensitive data access and configuration across cloud applications.

Instructions

Lists Secrets Manager secrets (names only).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler function that executes the list_secrets tool: sends ListSecretsCommand to SecretsManagerClient and formats response with secret names and descriptions.
    if (name === "list_secrets") { const command = new ListSecretsCommand({}); const response = await secretsManagerClient.send(command); const secrets = response.SecretList?.map(s => ({ Name: s.Name, Description: s.Description })) || []; return { content: [{ type: "text", text: JSON.stringify(secrets, null, 2) }] }; }
  • src/index.ts:758-761 (registration)
    Registers the list_secrets tool in the ListTools response, including name, description, and input schema (no parameters).
    name: "list_secrets", description: "Lists Secrets Manager secrets (names only).", inputSchema: { "type": "object", "properties": {} } },
  • Initializes the SecretsManagerClient instance used by the list_secrets handler.
    const secretsManagerClient = new SecretsManagerClient({});
  • Imports the SecretsManagerClient class and ListSecretsCommand used for list_secrets implementation.
    import { SecretsManagerClient, ListSecretsCommand } from "@aws-sdk/client-secrets-manager";

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