Skip to main content
Glama
Facets-cloud

Facets Module MCP Server

by Facets-cloud

write_resource_file

Creates or updates Terraform resource files like main.tf and variables.tf within a module directory. Updates to outputs.tf are handled separately.

Instructions

Writes a Terraform resource file (main.tf, variables.tf, etc.) to a module directory.

Does NOT allow writing output(s).tf here. To update outputs.tf, use write_outputs().

Args: module_path (str): Path to the module directory. file_name (str): Name of the file to write (e.g., "main.tf", "variables.tf"). content (str): Content to write to the file.

Returns: str: JSON string with success, message, instructions, and optional error/data fields.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
module_pathYes
file_nameYes
contentYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description must disclose behavioral traits. It only says 'writes' without specifying whether it overwrites, appends, or creates the file. It does not mention any preconditions (e.g., module_path must exist), permissions needed, or side effects. The return format is mentioned but not the actual behavior.

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 concise and well-structured: purpose in first sentence, exclusion in second, then parameter list and return type. No unnecessary words or repetition.

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

Completeness3/5

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

The tool has an output schema (not shown) and the description mentions the return format. With no annotations, the description should provide more behavioral details (e.g., overwriting behavior) to be complete for an agent. While it covers basic usage, gaps remain.

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 has 0% description coverage, so the description must compensate. It provides a brief Args section clarifying each parameter (module_path, file_name, content). However, it lacks constraints, examples, or valid formats. This adds some value but is minimal.

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 states it writes Terraform resource files (main.tf, variables.tf, etc.) to a module directory. It explicitly excludes outputs.tf and directs to write_outputs(), distinguishing itself from that sibling.

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

Usage Guidelines4/5

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

The description provides explicit guidance: does not write outputs.tf, and directs users to use write_outputs() for that purpose. This helps avoid misuse. However, it does not clarify when to use this tool over other file-writing siblings like write_config_files or write_generic_file.

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/Facets-cloud/facets-module-mcp'

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