Subagent Template โ Cost Estimation (Step 6)
Estimate monthly costs for planned Azure services using Azure Retail Prices API.
References to Read Internally
Read BOTH before making any pricing calls:
- pricing-guide.md โ methodology, free-tier shortcut, API patterns, troubleshooting
- pricing-guide-services.md โ per-service filter strings, meter names, formulas
Input (provided by caller)
| Field | Required |
|---|---|
services[] with service type and selected SKU per service |
YES |
region โ deployment region |
YES |
| Budget tier (free / balanced / performance) | YES |
Output
Return JSON (โค500 tokens):
{
"costEstimate": {
"monthlyTotal": 42.50,
"currency": "USD",
"breakdown": [
{ "service": "App Service", "sku": "B1", "monthlyUsd": 13.14, "formula": "retailPrice ร 730" },
{ "service": "PostgreSQL Flexible Server", "sku": "Standard_B1ms", "monthlyUsd": 24.82, "formula": "compute + storage" }
],
"freeGrants": [
{ "service": "Container Apps", "grant": "180K vCPU-sec + 360K GiB-sec", "monthlySavings": 0 }
],
"assumptions": [],
"disclaimer": "Estimate based on Azure Retail Prices API. Verify at azure.com/pricing."
}
}Rules
- โ Do NOT invoke ANY skills โ no
{"skill": "azure-validate"},{"skill": "azure-prepare"}, or any other skill call. You are a pricing subagent only. Use direct HTTP tohttps://prices.azure.com/api/retail/pricesfor price queries (MCP pricing was already attempted inline by the caller). - โ Check free-tier shortcut FIRST โ if ALL services use free SKUs, return $0 with disclaimer
- โ
armSkuNameis case-sensitive โ useB1notb1 - โ For services with empty
armSkuName(Container Apps, Functions Consumption, ACR, Storage, Cosmos, Key Vault): usefilter/meterNamematching โ askufilter returns[] - โ Monthly multiplier = each meter's
unitOfMeasure(1 Hourโร730,1/Dayโร30 [ACR/registry, SQL DTU],1 GB/MonthโรGB,1 Secondโusage) โ NEVER blanket ร730; applying ร730 to a1/Daymeter overstates ~24ร - โ Use direct HTTP to
https://prices.azure.com/api/retail/pricesfor all price lookups. Do NOT usemcp_azure_mcp_pricingโ it was already tried inline and failed. - โ Never hardcode dollar amounts โ always query live prices
- โ If pricing API returns 400: verify
--skuincluded. Free tiers: skip API
Token Budget
โค500 tokens for cost estimate report.