Skip to main content
Glama

list_lambda_functions

Lists AWS Lambda functions with their runtimes and last modified dates to monitor and manage serverless resources.

Instructions

Lists Lambda functions with runtimes and last modified dates.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'list_lambda_functions' tool. It uses the LambdaClient to send a ListFunctionsCommand, maps the response to include FunctionName, Runtime, LastModified, Handler, and CodeSize, and returns the JSON stringified list.
    if (name === "list_lambda_functions") { const command = new ListFunctionsCommand({}); const response = await lambdaClient.send(command); const funcs = response.Functions?.map(f => ({ FunctionName: f.FunctionName, Runtime: f.Runtime, LastModified: f.LastModified, Handler: f.Handler, CodeSize: f.CodeSize })) || []; return { content: [{ type: "text", text: JSON.stringify(funcs, null, 2) }] }; }
  • src/index.ts:393-399 (registration)
    Registration of the 'list_lambda_functions' tool in the ListTools response, including its name, description, and empty input schema (no parameters required).
    name: "list_lambda_functions", description: "Lists Lambda functions with runtimes and last modified dates.", inputSchema: { type: "object", properties: {} } },
  • Input schema for the tool, which is an empty object (no input parameters needed).
    inputSchema: { type: "object", properties: {} } },
  • Initialization of the shared LambdaClient used by the handler.
    const lambdaClient = new LambdaClient({});
  • Import of LambdaClient and ListFunctionsCommand from AWS SDK.
    import { LambdaClient, ListFunctionsCommand } from "@aws-sdk/client-lambda";

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