Price a hypothetical change
what_ifSimulate 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
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Infrastructure to simulate on (same kinds of input as estimate_cost's path). | |
| changes | Yes | Changes applied in order against the same evolving infrastructure. |