Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
pricesNoPath to a specific AWS price catalog file to use instead of the bundled one (passed as the `-prices <path>` flag to `cloudcosttree mcp`).

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

CloudCostTree prices AWS infrastructure-as-code (Terraform, Terragrunt, CloudFormation, CDK output, Pulumi stack exports, Terraform state) from its own AWS price catalog, without deploying anything.

Use estimate_cost after writing or editing infrastructure code, compare_cost to show what a change adds or saves, what_if to price a hypothetical change (instance type, count, storage, region...) without editing files, and iam_policy for the least-privilege IAM policy needed to deploy it.

Never estimate AWS prices yourself. Report the totals these tools return, and pass along their notes (resources that couldn't be priced, assumed usage volumes, on-demand list prices) instead of presenting the numbers as more exact than they are.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
compare_costA

Cost difference between two versions of the same infrastructure (e.g. a copy of the original vs. the edited one), per resource. Use it to show what a change adds or saves per month.

estimate_costA

Monthly AWS cost of an infrastructure-as-code input, per resource, with FinOps savings recommendations and a Cost Score. Use it after writing or editing Terraform/CloudFormation/Pulumi. A .tf directory runs a read-only terraform plan. Report the returned total and its notes as-is.

iam_policyB

Least-privilege IAM policy (JSON) with the actions needed to deploy an infrastructure-as-code input, plus a privilege-escalation review. On Free the Resource is "*"; Roots scopes it to the declared ARNs.

what_ifA

Prices a hypothetical change without editing any file: resize, re-count, change storage, move region, or remove resources, and get the before/after monthly cost. Each change is {target, flags} or {target, remove: true}. target is the exact resource name as the report shows it (e.g. aws_instance.web). Flag values are strings; boolean flags take "true". Valid flags: allocated-storage, auto-scaling-max, auto-scaling-min, backup-storage, count, data-in, data-out, desired-capacity, dynamo-mode, dynamo-rcu, dynamo-wcu, elastic-ips, hours-per-month, instance-class, instance-type, iops, lambda-architecture, lambda-memory, lb-scheme, lb-type, multi-az, nat-data, nat-type, no-multi-az, os, rds-backup-retention, region, retention-days, root-volume-size, root-volume-type, snapshot-size, storage-type, table-class, throughput, volume-size, volume-type.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.7/5.0

Scored across 4 tools

Disambiguation4/5

The three cost tools are separated by explicit framing: estimate_cost prices a file, compare_cost diffs two versions, and what_if prices hypothetical flag changes without editing. There is still a residual overlap between what_if and compare_cost, since both yield before/after figures for similar resource attributes, but the descriptions give an agent enough signal to choose.

Naming Consistency3/5

compare_cost and estimate_cost follow a verb_noun pattern, but iam_policy is a bare noun phrase and what_if is a question-style name. The names remain readable and domain-relevant, but the convention is mixed.

Tool Count4/5

Four tools is compact and each covers a genuinely different question (estimate, diff, hypothetical, permissions), so nothing feels padded. It sits at the sparse end for a cost-analysis surface, but all four earn their place.

Completeness4/5

The pre-deployment IaC lifecycle is well covered: estimate, compare, what-if simulation, and the IAM policy needed to actually deploy. Gaps are minor — the surface is AWS-only and there's no way to enumerate supported resource types or export/persist reports, but core workflows have no dead ends.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues