cost-comparison
Compare OpenAI spending between two calendar months to identify cost changes. Get total spend, per-line-item deltas, and biggest movers.
Instructions
Compare OpenAI costs between two months to identify spending changes.
USE THIS TOOL FOR:
Month-over-month cost variance analysis (e.g., February vs March)
Identifying which line items increased or decreased the most
Executive-level cost change summaries
DO NOT USE THIS TOOL FOR:
Single-month cost analysis (use 'costs' tool instead)
Token or request usage data (use 'usage' tool instead)
Arbitrary date range comparisons (this tool compares full calendar months only)
PARAMETERS:
baseline_month: Earlier month in YYYY-MM format (e.g., "2026-02")
comparison_month: Later month in YYYY-MM format (e.g., "2026-03")
group_by: "line_item" (default), "project_id", or both
top_n: Number of items to show (default 10)
OUTPUT includes:
Total spend for each month with overall delta and % change
Per-line-item comparison table with delta and % change
Biggest movers section highlighting largest increase and decrease
EXAMPLES:
February vs March: baseline_month="2026-02", comparison_month="2026-03"
By project: baseline_month="2026-02", comparison_month="2026-03", group_by="project_id"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_n | No | ||
| group_by | No | ||
| baseline_month | Yes | ||
| comparison_month | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |