query_cost_estimate
Estimate BigQuery query cost by dry-running SQL to see bytes scanned before execution, enabling cost-aware decisions.
Instructions
Dry-run a SQL query to see how many bytes it would scan without actually executing it. Use this before running expensive queries to check cost.
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": "query_cost_estimate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | The SQL query to estimate cost for | |
| project_id | No | Override the default project ID |