Skip to main content
Glama

cost_analyze_infra

Analyze Infrastructure-as-Code files to estimate cloud costs and identify savings opportunities across AWS, GCP, or Azure.

Instructions

Analyze infrastructure-as-code files to estimate costs and find savings opportunities

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
api_keyNo
providerNoCloud provideraws
directoryYesDirectory with IaC files (Terraform, CloudFormation, etc.)
Behavior2/5

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

With no annotations provided, the description must disclosure behavioral traits. It only says 'Analysis' and does not state whether the operation is read-only, whether it makes external pricing API calls, whether cloud credentials are needed, or what side effects may occur. This is insufficient 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.

Conciseness5/5

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

The description is a single concise sentence with no filler words. The main action and purpose are front-loaded, making it easy to scan.

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

Completeness2/5

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

Without output schema or annotations, the description does not explain return format, output contents, prerequisites, or required authentication. For a tool with three parameters and a provider enum, this is not enough context for an agent to fully understand invocation expectations or distinguish it from related cost tools.

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?

Three parameters exist with 67% schema description coverage. The schema already documents directory and provider, but api_key is undocumented in both schema and description. The description adds no additional semantic value beyond matching 'infrastructure-as-code files' to the directory parameter.

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 a clear resource ('infrastructure-as-code files'), with the outcome being cost estimation and savings identification. However, it does not explicitly distinguish itself from sibling tools like cost_optimize_docker or cost_generate_report, which may overlap in purpose.

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 description implies usage from 'Analysis infrastructure-as-code files' but gives no explicit context about when to choose this tool over alternatives such as cost_optimize_docker, cost_optimize_database, or iac_scan_terraform. There is no when-not-to-use guidance or mention of alternatives.

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/barnburner121/claude-plugin-marketplace'

If you have feedback or need assistance with the MCP directory API, please join our Discord server