Run Saved Report
run_saved_reportRun one of the organization's saved custom reports by its report_id and get its rows — THE tool for "run our Cost by Team report" or "what does the EC2 Usage Breakdown report show this month?". It loads the report's saved pivot settings (dimensions, granularity, service / account / cost-center filters and the exact integrations it was saved over) and runs them through the same code as run_cost_pivot, so it returns the same shape: rows largest-_total-first, columns, grandTotals, and requestedWindow / returnedWindow with a windowNote if the backend clamped the window — or, for a slow report, a { jobId, status } handle you collect with get_cost_pivot. A relative range ("Last 6 Months", "This Month", …) is recomputed from today, as the dashboard does when you open the report. Override the window with start_date / end_date and the row cap with limit. Only cost is returned: if the report also saves usage metrics they are listed in omittedMetrics, and the cost figures are unaffected. Each connection's saved cost settings apply, as in the dashboard. A report with a setting this tool can't express is refused with a sentence naming it. pivotArguments echoes the exact run_cost_pivot arguments used, so you can rerun or vary it there. Read-only. Example: { "report_id": "" }; { "report_id": "…", "start_date": "2026-10-01", "end_date": "2026-10-31", "limit": 20 } runs it for October only.
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": {
"report_id": "<report_id>"
},
"name": "run_saved_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max rows to return, applied after sorting by `_total` desc (default 100, max 500). | |
| end_date | No | Override the window end (needs start_date too). Defaults to today. | |
| report_id | Yes | The saved report to run (report_id from list_saved_reports). | |
| start_date | No | Override the report's window start. Omit to use the report's own range, recomputed from today the way the dashboard does when you open it. | |
| wait_seconds | No | How long to wait before handing back a job handle (default 20, max 22). | |
| response_format | No | concise = dimensions, `_total` and the last two time columns per row (default). detailed = every column. | concise |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Backend error code, e.g. RESPONSE_TOO_LARGE. | |
| note | No | What to do next. | |
| rows | No | Pivot rows, largest `_total` first. One key per dimension (named verbatim), one per time column, plus `_total`. On a `resource` pivot each row MAY also carry `_resource_id` and `_region` — both are optional and independent (a row can have both, either or neither), so check before using them; a missing `_resource_id` means the backend attributed none, not that the resource has none. The displayed `resource` value is sometimes the full ARN and sometimes a short name; it is the empty string "" for spend with no resource attribution (support, commitment fees, tax), and the literal "Others" for the backend collapse bucket — which can itself carry `_resource_id`/`_region`, so detect it by that string. | |
| tool | No | Which tool truncated (only on a truncated result). | |
| error | No | True on a backend error envelope. | |
| jobId | No | The pivot job. Pass to get_cost_pivot to pick it up later; expires 24h after creation. | |
| status | No | queued | running | succeeded | failed | cancelled | expired. | |
| columns | No | Time-column labels (YYYY-MM monthly, YYYY-MM-DD weekly/daily). THE authority on the window served. | |
| details | No | Backend error details, when any. | |
| message | No | How to narrow the request (only on a truncated result). | |
| nextStep | No | How to recover from the error in `code`. | |
| rowsNote | No | Present when rows were capped client-side. | |
| expiresAt | No | When the job is discarded (24h after creation). | |
| totalRows | No | How many rows matched before `limit` was applied. | |
| truncated | No | Present and true when the result exceeded the output-size budget and was WITHHELD. When you see this, no data fields are present — narrow the request as `message` says and call again. | |
| dimensions | No | The group-by actually applied, in order. Row keys use these names VERBATIM (a tag dimension is a literal "tag:<key>" key). | |
| isLastPage | No | Always true — see `nextCursor`. | |
| nextCursor | No | Always null: this backend returns every row in one response (paging is disabled). | |
| windowNote | No | Present only when the served window differs from the requested one — the backend clamps silently. Quote it. | |
| emptyReason | No | Why the pivot returned no rows. | |
| grandTotals | No | Org-wide totals per time column plus `_total`, independent of `limit`. | |
| granularity | No | monthly | weekly | daily. | |
| pollAfterMs | No | How long to wait before calling get_cost_pivot (only on a not-yet-finished job). | |
| reportNotes | No | How the saved settings were applied. | |
| savedReport | No | The saved report that was run: `report_id`, `name`, `chart_type`. | |
| approx_chars | No | Approximate size of the withheld result (only on a truncated result). | |
| returnedRows | No | How many rows are in `rows`. | |
| collapsedNote | No | Present when the backend folded small rows into an `Others` bucket. | |
| omittedMetrics | No | Saved metrics this tool does not return (usage quantities). The cost figures are unaffected. | |
| pivotArguments | No | The exact run_cost_pivot arguments the report mapped to — pass them to run_cost_pivot to reproduce or vary the run. | |
| returnedWindow | No | The window actually served, derived from `columns`. | |
| requestedWindow | No | The window asked for, `{start, end}`. |