Skip to main content
Glama

generate_terraform_remediation

Generates copy-paste-safe Terraform HCL patches, AWS CLI commands, and a Markdown executive report from an AWS FinOps snapshot, turning audit findings into actionable remediation.

Instructions

[PRO LICENSE] Generates copy-paste safe Terraform HCL patches, AWS CLI commands, and Markdown Executive Report for a FinOps snapshot.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "generate_terraform_remediation"
  }
}

Input Schema

NameRequiredDescriptionDefault
snapshotNoAWS resource & LLM workload JSON snapshot.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description bears the full burden. It does add real behavioral context: the [PRO LICENSE] gating and the fact that output is generated artifacts rather than applied changes ('copy-paste safe'), implying no mutation occurs. It stops short of stating that nothing is written to AWS, how the license is enforced at runtime, or what happens with a missing snapshot.

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 sentence with no filler, front-loading the license constraint and then the verb and outputs. Nothing is redundant, though the sentence is dense and packs three distinct output types plus a licensing caveat without structure.

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?

For a one-parameter generator with no output schema, the definition covers what is produced and the licensing gate. It leaves open whether the snapshot is optional (required count is 0), what a minimal valid snapshot looks like, and how large or well-formed the returned patch set is.

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% for the single 'snapshot' property, so the schema already defines it as an AWS resource and LLM workload JSON snapshot. The description only restates that the snapshot drives generation, adding no format, size, or sourcing guidance beyond the schema. Baseline 3 applies.

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 ('Generates') and enumerates concrete artifacts: Terraform HCL patches, AWS CLI commands, and a Markdown Executive Report. That output profile makes it distinguishable from audit_aws_finops_snapshot and compare_llm_token_cost, though it never names those siblings explicitly.

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?

It says the input is 'a FinOps snapshot' but gives no when-to-use criteria, no prerequisites, and no pointer to alternatives. An agent must infer that this is the remediation step that follows an audit.

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