Skip to main content
Glama

list_lambda_functions_impl

List available AWS Lambda functions accessible through the MCP2Lambda server to understand their capabilities and use them as tools for accessing resources, data, or computation.

Instructions

Tool that lists all AWS Lambda functions that you can call as tools. Use this list to understand what these functions are and what they do. This functions can help you in many different ways.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • main.py:68-92 (handler)
    The main handler function for the 'list_lambda_functions_impl' tool. It lists AWS Lambda functions using boto3, filters those matching the FUNCTION_PREFIX or listed in FUNCTION_LIST, and returns their names and descriptions as a JSON string.
    def list_lambda_functions_impl(ctx: Context) -> str: """Tool that lists all AWS Lambda functions that you can call as tools. Use this list to understand what these functions are and what they do. This functions can help you in many different ways.""" ctx.info("Calling AWS Lambda ListFunctions...") functions = lambda_client.list_functions() ctx.info(f"Found {len(functions['Functions'])} functions") functions_with_prefix = [ f for f in functions["Functions"] if validate_function_name(f["FunctionName"]) ] ctx.info(f"Found {len(functions_with_prefix)} functions with prefix {FUNCTION_PREFIX}") # Pass only function names and descriptions to the model function_names_and_descriptions = [ {field: f[field] for field in ["FunctionName", "Description"] if field in f} for f in functions_with_prefix ] return json.dumps(function_names_and_descriptions)
  • main.py:125-125 (registration)
    Registration of the list_lambda_functions_impl tool when pre-discovery of Lambda functions is disabled (PRE_DISCOVERY=False).
    mcp.tool()(list_lambda_functions_impl)
  • main.py:181-181 (registration)
    Fallback registration of the list_lambda_functions_impl tool when dynamic pre-discovery of individual Lambda tools fails.
    mcp.tool()(list_lambda_functions_impl)

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/danilop/MCP2Lambda'

If you have feedback or need assistance with the MCP directory API, please join our Discord server