Skip to main content
Glama
codedev-mcp

codedev-mcp

by Kranthithota

iac_analyze

Read-onlyIdempotent

Analyze infrastructure-as-code definitions to extract resources, providers, and issues from Terraform, CloudFormation, Kubernetes manifests, and Docker Compose files.

Instructions

Analyze infrastructure-as-code definitions. Parses Terraform (.tf), CloudFormation, Kubernetes manifests, and Docker Compose files. Returns resources, providers, and issues.

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": "iac_analyze"
  }
}

Input Schema

NameRequiredDescriptionDefault
directoryNoSubdirectory to search

Output Schema

NameRequiredDescriptionDefault
issuesYes
summaryYes
platformYes
resourcesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.2.5

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and openWorldHint=false, so the safety profile is covered. The description adds that parsing supports four distinct IaC dialects and that results include resources, providers, and issues, which is useful beyond the annotations. It does not disclose search depth/recursion behavior for the directory, multi-file vs single-file handling, or error behavior on unsupported files.

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?

Three short sentences, front-loaded with the purpose and then the format coverage — no filler. The final sentence listing returned fields is slightly redundant with the output schema, which keeps it from a 5.

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?

An output schema exists, so return values need not be explained in depth, and annotations cover the safety profile. With only one optional parameter, the definition is nearly sufficient; the remaining gap is default-directory and recursion behavior, which an agent calling this would want to know.

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 single parameter has 100% schema description coverage ('Subdirectory to search'), so the schema already carries the semantics. The description adds nothing about how the directory is resolved, what happens when it is omitted, or whether the scan is recursive — the main ambiguity an agent would face. Baseline 3 is appropriate.

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 names a specific verb (Analyze) and resource (infrastructure-as-code definitions), then enumerates the formats it handles: Terraform (.tf), CloudFormation, Kubernetes manifests, and Docker Compose. That format list meaningfully separates it from the generic analyze_file sibling, though no sibling is named explicitly.

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?

The supported-format list implies when the tool applies, so an agent can infer 'use this for IaC files.' But there is no explicit when-to-use instruction, no exclusion such as 'not for single-file source analysis, use analyze_file,' and no mention of cicd_analyze or monorepo_analyze as alternatives.

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