Skip to main content
Glama

Scan Terraform for cloud lock-in

scan_terraform_lock_in
Read-only

Analyze local Terraform .tf files to identify AWS, Google Cloud, Azure, and DigitalOcean services, score EU portability, and suggest EU-owned replacements without uploading files.

Instructions

Reads the .tf files in a local directory and lists the AWS, Google Cloud, Azure and DigitalOcean services used, how portable each is to EU-owned clouds, what replaces it, and an EU portability score. Files stay local.

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": {
      "path": "<path>"
    },
    "name": "scan_terraform_lock_in"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute path to a Terraform directory or .tf file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false; the description adds meaningful context beyond that by asserting 'Files stay local', which confirms no network transmission of source code, and by previewing what the report contains. It stops short of describing report format, size limits, or behavior on unparseable or non-Terraform files, so it is strong but not complete.

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?

Two sentences, no padding, and the resource scope is front-loaded before the output summary. Every clause carries information: file type, locality, target clouds, portability verdict, replacements, and score.

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?

With no output schema, the description usefully summarizes return contents (services, portability, replacements, score) and the locality guarantee, which is what an agent needs to decide to call it. Minor gaps remain around recursion into subdirectories and handling of mixed or invalid Terraform files.

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 the single path parameter is already documented as an absolute path to a directory or .tf file. The description's phrase 'local directory' reinforces locality but adds no syntax, recursion, or edge-case guidance beyond the schema, so the baseline 3 applies.

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 states a specific verb and resource ('Reads the .tf files in a local directory') and enumerates the exact outputs: services used, portability, replacements, and an EU portability score. This is clearly distinguishable from sibling tools like compare_eu_cloud_prices or estimate_cloud_exit_fees, which operate on different questions.

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

Usage Guidelines3/5

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

Scope is implied by 'local directory' and the mention of .tf files, so an agent can infer this is the entry-point scan for a Terraform project. However, there is no explicit statement of when to choose this over the sibling tools (e.g., run this first, then call find_eu_alternative for a specific service), and no preconditions such as required file presence.

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