Skip to main content
Glama

lambda_generate_function

Generate an AWS Lambda function with boilerplate code, handler setup, and event typing. Choose runtime and trigger to scaffold a deployable function.

Instructions

Generate an AWS Lambda function with boilerplate code, handler setup, and event typing

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesFunction name
api_keyNoAPI key for authentication
runtimeYesLambda runtime environment
triggerYesEvent trigger type
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of disclosing behavior. It says it generates code, but it does not state whether files are written to disk, whether AWS credentials or the api_key parameter are required, what the output format is, or whether it overwrites existing code. This is a significant gap for a tool that likely creates or modifies resources.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, well-structured sentence with no filler words. It front-loads the core action and lists the specific deliverables, making it easy to scan and understand.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with four parameters, no annotations, and no output schema, the description is too thin. An agent cannot determine what the tool returns, where the generated function goes, what authentication context is expected, or how the optional api_key parameter affects behavior. This leaves important operational details unstated.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema covers 100% of the parameters with descriptions, so the baseline is 3. The tool description adds no parameter-level meaning beyond mentioning 'handler setup' and 'event typing,' which loosely map to runtime and trigger but are not explicit enough to elevate the score.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly identifies the action (generate), the resource (AWS Lambda function), and the scope (boilerplate code, handler setup, event typing). It also differentiates from sibling tools like lambda_configure_iam and lambda_add_layers because it focuses on generating function code rather than configuring IAM or adding layers.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance about when to choose this tool over alternatives, nor any mention of prerequisites or exclusions. The word 'generate' implies a scaffolding use case, but the description never says 'use this when creating a new Lambda function' or contrasts it with configure/add tools like lambda_configure_iam.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/barnburner121/claude-plugin-marketplace'

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