query_sql_report
Run read-only SQL rowset queries over authorized datasets to generate wide reports. Returns columns, rows, row count, truncation status, and latency.
Instructions
Execute a constrained read-only SQL rowset query over authorized datasets. Use this only for wide reports that do not fit the governed exact-query surface. SQL must be a single SELECT/WITH statement over the provided dataset aliases. Returns columns, rows, row_count, truncated, request_id, and latency_ms.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | Single read-only SELECT or WITH statement. | |
| sources | Yes | Authorized datasets made available to the SQL report. | |
| max_rows | No | Optional row cap, up to the API maximum. |