Skip to main content
Glama
cloud-governance-mcp

cloud-governance-mcp

analyze_terraform_plan

Read-onlyIdempotent

Summarize resource identities and proposed actions from a local Terraform plan JSON file to review infrastructure changes without applying them or evaluating compliance.

Instructions

Summarize resource identities and proposed actions from a local Terraform plan JSON file in an allowed directory. Returns no resource attribute values and performs no compliance evaluation or infrastructure changes.

Input Schema

NameRequiredDescriptionDefault
plan_pathYesLocal path within an allowed root.

Output Schema

NameRequiredDescriptionDefault
summaryYes
warningsYes
resourcesYes
format_versionYes
schema_versionNo1
analysis_statusYes
terraform_versionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, closed-world, non-destructive behavior, so the bar is lower; the description still adds meaningful context by stating the output deliberately omits resource attribute values and that no infrastructure changes occur. It does not cover error behavior for missing/invalid plan files or path-allowlist rejection, which would be the next valuable additions.

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, front-loaded with the core action, and the second sentence exists specifically to set negative expectations about output and side effects. No filler.

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 annotations, full schema coverage, a single required parameter, and an output schema, the description covers what an agent needs to select and call it. A minor gap is that it doesn't state the plan must be the JSON rendering (e.g., from `terraform show -json`) rather than a binary plan file.

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 plan_path parameter is documented as 'Local path within an allowed root.' The description's phrase 'local Terraform plan JSON file in an allowed directory' adds only slight clarification (JSON format) 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?

States a specific verb (summarize), resource (Terraform plan JSON), and the exact content returned (resource identities and proposed actions), plus scope constraints (local file, allowed directory). This is clearly distinguishable from evaluate_terraform_policies by the explicit disclaimer that no compliance evaluation occurs.

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 bounds when to use it by negating the sibling capability ('performs no compliance evaluation or infrastructure changes'), which implicitly routes compliance questions to evaluate_terraform_policies. It does not name the alternative tool explicitly or describe the plan-file prerequisite workflow, so it stops short of full guidance.

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