run_query_bounded
Execute BigQuery, Snowflake, or Databricks SQL only when pre-flight cost, bytes, and row estimates fit your bounds; otherwise refuse it before it runs or spends quota.
Instructions
Run a query only if its pre-flight cost estimate is within your given bounds; refuses otherwise (check result.status — "refused" means it did NOT run and result.hint explains why). NOTE: unlike estimate_query_cost, a successful call here has a real monetary/quota side effect — don't call this repeatedly without inspecting the result of each call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| engine | Yes | ||
| max_rows | No | ||
| warehouse | No | ||
| max_bytes_billed | No | ||
| max_estimated_cost_usd | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | ||
| rows | No | ||
| reason | No | ||
| status | Yes | ||
| estimate | No | ||
| row_count | No |