Skip to main content
Glama
Facets-cloud

Facets Module MCP Server

by Facets-cloud

write_config_files

Writes facets.yaml configuration for a Terraform module with a dry-run option to preview changes before applying.

Instructions

Writes facets.yaml configuration file for a Terraform module. Make Sure you have Called FIRST_STEP_get_instructions first before this tool.

Steps for safe variable update:

  1. Always run with dry_run=True first. This is an irreversible action.

  2. Parse and display a diff:

    Added Modified (old -> new) Removed

  3. Ask the user if they want to edit or add variables and wait for his input.

  4. Only if the user explicitly confirms, run again with dry_run=False.

Args: module_path (str): Path to the module directory. facets_yaml (str): Content for facets.yaml file. dry_run (bool): If True, returns a preview of changes without making them. Default is True.

Returns: str: Success message, diff preview (if dry_run=True), or error message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
module_pathYes
facets_yamlYes
dry_runNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Describes irreversible action and safety steps (dry_run, user confirmation). Without annotations, this provides necessary behavioral context beyond just writing a file. Lacks details on file overwrite behavior or authentication, but sufficient for safe invocation.

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

Conciseness3/5

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

Description is moderately structured with a warning and steps, but could be tighter. The caution about 'Make sure you have Called...' and the step list add value but are verbose. Not exceptionally concise.

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

Completeness4/5

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

Given the presence of an output schema, the description need not detail return values. It covers prerequisites, safety workflow, and return types (success, diff, error). Missing details on file overwrite behavior, but overall complete for a config file tool.

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 has 0% description coverage; description lists all three parameters (module_path, facets_yaml, dry_run) with brief explanations. 'dry_run' explanation (preview vs. apply) is helpful, but module_path and facets_yaml lack format or constraint details. Baseline compensation is adequate but 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?

Description clearly states it writes a specific file: 'facets.yaml configuration file for a Terraform module.' Uses specific verb and resource, differentiating it from siblings like write_generic_file which lack specificity.

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?

Explicitly calls out prerequisite to call FIRST_STEP_get_instructions first and provides a step-by-step workflow for safe usage (dry_run then confirmation). However, it does not explicitly exclude alternatives or describe when not to use this tool.

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