Skip to main content
Glama

generate_lambda_function

Generate Lambda function configuration with IAM role, layers, and event sources

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "functionName": "<functionName>",
      "runtime": "<runtime>"
    },
    "name": "generate_lambda_function"
  }
}

Input Schema

NameRequiredDescriptionDefault
layersNoLambda layer ARNs
handlerNoFunction handler (e.g. index.handler)
runtimeYesLambda runtime
timeoutNoFunction timeout in seconds (1-900)
vpcConfigNoVPC configuration with subnetIds and securityGroupIds
memorySizeNoMemory allocation in MB (128-10240)
environmentNoEnvironment variables key-value pairs
architectureNoInstruction set architecture
functionNameYesLambda function name

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. First observed

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It never clarifies whether "generate" means emitting a local config artifact, deploying a real function, or invoking AWS APIs, nor does it mention required credentials, side effects, or whether anything is mutated. For a generator touching IAM roles, that omission of auth/permission context is significant.

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

Conciseness4/5

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

A single front-loaded sentence with no filler, which is appropriate for this tool's surface. It is, however, arguably over-compressed given nine parameters and nested VPC/environment objects.

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?

With nine parameters, two nested objects, no annotations, and no output schema, the definition should explain what the generated configuration looks like and what the caller receives. Instead the description stops at a list of components, leaving the return shape and the effect of calling the tool undefined.

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?

Schema description coverage is 100%, with per-property descriptions and enums for runtime and architecture, so the schema already does the heavy lifting and the baseline of 3 applies. The description adds no parameter-level detail, and its mention of IAM role and event sources does not map to any actual parameter.

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

Purpose4/5

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

States a specific verb and resource ("Generate Lambda function configuration") and names the components included (IAM role, layers, event sources). It falls short of 5 because it does not differentiate itself from closely named siblings such as generate_cloud_function or generate_function_app, and it names IAM role and event sources that are not in the schema, leaving ambiguity about what is actually produced.

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 on when to choose this tool over generate_cloud_function, generate_function_app, or any other generator. No prerequisites or exclusions are stated, so the agent must infer the AWS Lambda context purely from the name.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.