bq_dry_run_sql
Validate BigQuery SQL syntax and estimate query cost without execution. Returns cost estimates, referenced tables, and schema previews.
Instructions
Perform a dry-run of a BigQuery SQL query to get cost estimates and metadata
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": {
"sql": "<sql>"
},
"name": "bq_dry_run_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | The SQL query to dry-run | |
| params | No | Optional query parameters (key-value pairs) | |
| pricePerTiB | No | Price per TiB for cost estimation (defaults to env var or 5.0) |