analyze_ai_spend
Break down generative-AI spend from a local FOCUS billing export by model and provider, compare paid versus list prices, and estimate prompt-cache savings.
Instructions
FinOps for AI on the user's actual bill (a local FOCUS 1.x CSV export; nothing is sent anywhere). Finds the generative-AI lines (Amazon Bedrock, Azure OpenAI / AI Foundry, Vertex AI, OCI Generative AI) and gives spend per model split into input, output, cache-read and cache-write tokens; what was paid against list price; the same model's cost on other providers for the same tokens; how much input comes from prompt cache and what more would save; and list price changes for those models from the weekly LLM price archive. Use for: 'what is our LLM spend', 'are we overpaying for this model', 'would caching help'.
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": {
"file_path": "<file_path>"
},
"name": "analyze_ai_spend"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_n | No | How many models to return, largest spend first. | |
| file_path | Yes | Local path to a FOCUS export, .csv or .csv.gz. |