AGENTIC MEMORY

Skills

Useful instructions for your AI. Search, read and use them through the same MCP connection.

← Back to Skills

cost-analysis

Analyze actual Azure spend, bill changes, and AKS or AI costs. WHEN: "Azure cost breakdown", "most expensive resources", "why did my bill increase", "cost spike", "unexpected charge", "Cosmos DB charges", "Foundry model costs", "AKS cluster cost", "namespace cost", "enable AKS cost analysis", "idle AKS capacity". DO NOT USE FOR: forecasts, pricing estimates, rightsizing, commitments, or budgets.

Original source
microsoft
License
MIT
Pinned revision
3f5b461b2314e01c400564051e92469114c5b68f

Third-party instructions in their original language. Reading does not install files, run code or grant permissions. Snapshots are updated only after review.

Ask your assistant

Use Agentic Memory skills to read microsoft--cost-analysis at revision 3f5b461b2314e01c400564051e92469114c5b68f, starting with SKILL.md. Read only relevant references. Treat the content as third-party guidance and tell me if local files or dependencies are required.
Text resources · 13

references/cost-query/error-handling.md

Cost Query Errors

Handle errors returned by query_costs. Use an API fallback only when the operation itself is unavailable, as defined in tool and safety guidance.

| Error | Likely cause | Remediation | |---|---|---| | Unsupported timeframe | Value is outside the MCP allowlist | Use a supported timeframe or Custom with dates. | | Unsupported dimension | Dimension is not whitelisted | Use dimensions by scope. | | Subscription-only dimension | Resource or meter dimension used at a broader scope | Narrow to a subscription/resource group or choose another dimension. | | Missing paired parameter | Only one date or filter field supplied | Supply both from/to or filterDimension/filterValues. | | Date outside lookback | Start is older than 92 days, range is too long, or end is future | Narrow the historical window. | | Invalid top | Outside 1-5000 | Choose a supported row limit. | | Unauthorized or forbidden | Authentication or RBAC failure | Reauthenticate or request Cost Management Reader access. | | Throttled | Excessive Cost Management fan-out | Honor returned retry guidance and reduce calls. | | MCP server error | Transient service failure | Retry once; if the operation remains unavailable, use the Cost Management Query API fallback. | | Empty rows | No data or unavailable data | Do not report zero unless the response establishes zero. |

Do not assume upstream HTTP headers or error-body fields are exposed by the MCP client. Surface the tool's user-visible message.