Run analytics query
run_analytics_queryExecute read-only GoogleSQL queries against SpotDraft analytics tables to retrieve contract data for analysis.
Instructions
Runs a single read-only GoogleSQL SELECT query (optionally with WITH/UNION) against SpotDraft's analytics tables, returning result rows. Max query length 10,000 characters. This is a POST endpoint with no side effects (a query, not a mutation), so it is classified as a read operation. Use get_analytics_catalog first to see available tables/columns.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | A single GoogleSQL SELECT statement (optionally WITH / UNION). Max 10,000 characters. | |
| user_scoped | No | When set, overrides the default user-scoping: true restricts to contracts this user can access (the default when unset); false requests workspace-wide access, which only Admin-role callers can use. |