Skip to main content
Glama

generate_sam_template

Generate SAM template with Lambda functions, API Gateway, and DynamoDB

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": {
      "appName": "<appName>",
      "functions": "<functions>"
    },
    "name": "generate_sam_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
layersNoLambda layer definitions
appNameYesSAM application name
globalsNoSAM globals section
httpApiNoUse HTTP API instead of REST API
outputsNoStack outputs
functionsYesLambda function definitions (name, handler, runtime, events)
apiDefinitionNoAPI Gateway definition

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 burden and it delivers almost nothing: it does not say whether output is written to disk or returned, where files land, whether existing templates are overwritten, or whether the generated template is validated. For a code-generation tool with no annotation coverage, that is a substantial gap.

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; the verb and target lead. It is tight, but the brevity is closer to under-specification than to economical writing.

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?

Seven parameters, two required, nested objects, and no output schema or annotations — this needs far more explanation than one clause. Nothing tells the agent what artifact is produced, where it is placed, or what 'globals'/'outputs'/'layers' interaction means in practice.

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 coverage is 100% and all seven parameters, including the nested objects, have descriptions, so the baseline is 3. The description restates the domains (Lambda, API Gateway, DynamoDB) in general terms but adds no meaning about required structure of 'functions' or 'apiDefinition' beyond what the schema already conveys.

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?

Names a concrete verb+resource ('Generate SAM template') and enumerates the resource types it emits (Lambda, API Gateway, DynamoDB). An agent can distinguish this from the many other 'generate_*' siblings because it targets AWS SAM specifically, though it never names an actual alternative.

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 when-to-use guidance, no prerequisites (e.g. need an existing appName or an AWS project context), and no condition under which a different generator should be chosen instead. The agent must infer everything about selection from the sibling name list.

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.