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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:1257-1272 (handler)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: {} } },
- src/index.ts:395-399 (schema)Input schema for the tool, which is an empty object (no input parameters needed).inputSchema: { type: "object", properties: {} } },
- src/index.ts:64-64 (helper)Initialization of the shared LambdaClient used by the handler.const lambdaClient = new LambdaClient({});
- src/index.ts:30-30 (helper)Import of LambdaClient and ListFunctionsCommand from AWS SDK.import { LambdaClient, ListFunctionsCommand } from "@aws-sdk/client-lambda";