Skip to main content
Glama

tf_generate_module

Generate a Terraform module with main, outputs, and provider configuration for specified cloud provider and resource type, giving a ready-to-use infrastructure foundation.

Instructions

Generate a Terraform module with main, outputs, and provider configuration

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
api_keyNoAPI key for authentication
providerYesCloud provider (aws, gcp, azure)
module_nameYesName of the Terraform module
resource_typeYesPrimary resource type to manage
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 behavioral disclosure. It does not mention whether files are created on disk, whether existing files are overwritten, whether authentication via api_key is required, or any side effects. The description is limited to the high-level result.

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, front-loaded sentence with no filler. Every word contributes meaning, and it efficiently communicates the core purpose and expected outputs.

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 generation tool with no annotations and no output schema, the description omits important operational details: where files are created, overwrite behavior, whether api_key is needed for provider authentication, and how this differs from tf_generate_variables. The description is adequate only as a high-level summary.

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%, so the schema already documents all four parameters. The description adds value by indicating the module contains provider configuration, which loosely relates to the 'provider' parameter, but it does not add significant meaning beyond what the schema already provides.

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?

The description states a specific verb ('Generate') and resource ('Terraform module'), and enumerates the expected outputs ('main, outputs, and provider configuration'). This is clear and helps distinguish it from related sibling tools like tf_generate_variables, though it does not explicitly name alternatives.

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?

No guidance is provided about when to use this tool versus related siblings such as tf_generate_variables or tf_best_practices. The description implies a general generation use case but does not clarify context, prerequisites, or exclusion criteria.

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