Skip to main content
Glama

Price a hypothetical change

what_if
Read-onlyIdempotent

Simulate resource changes such as resizing, re-counting, moving, or removal to calculate before/after monthly AWS costs without editing files.

Instructions

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.

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>",
      "changes": "<changes>"
    },
    "name": "what_if"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesInfrastructure to simulate on (same kinds of input as estimate_cost's path).
changesYesChanges applied in order against the same evolving infrastructure.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint, so the description's real contribution is the no-file-edit guarantee and the disclosure that changes are applied in order against the same evolving infrastructure. It also specifies value encoding conventions (strings, boolean flags as "true") and the full valid flag set, which is behaviorally important. The remaining gap is that it doesn't say what happens on an invalid flag or unknown target.

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?

Purpose and the no-edit guarantee are front-loaded, followed by the change shape and then the flag vocabulary. The long flag enumeration is bulky, but on balance it earns its place because an agent cannot construct valid flags without it.

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

Completeness5/5

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

For a two-parameter simulation tool with no output schema, the description covers what it returns (before/after monthly cost), how changes are structured and sequenced, and the full flag vocabulary. An agent can construct a correct call from this text alone.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, but the description adds substantially: the per-change shape as {target, flags} or {target, remove: true}, the requirement that target match the exact resource name as reported (e.g. aws_instance.web), and the exhaustive enumerated flag list with value-type conventions. That is meaning well beyond the schema's generic property descriptions.

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 and resource: prices a hypothetical change and returns before/after monthly cost, without editing any file. It implicitly distinguishes itself from estimate_cost by referencing the same path input and by framing itself as simulation-only.

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?

"Prices a hypothetical change without editing any file" gives clear context for when to reach for it over a real mutation, and the path parameter is tied to estimate_cost's input. It stops short of explicitly naming compare_cost or estimate_cost as the alternative for non-simulated pricing.

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

Deploy Server

Other Tools