Estimate BigQuery query cost
estimate_query_costCalculate BigQuery query cost before running it by performing a free dry run that reports bytes processed, estimated on-demand USD charges, and flags SELECT * or missing partition filters.
Instructions
Runs a BigQuery dry run (free; no data is read or billed) for the given standard SQL and returns bytes processed, the estimated on-demand cost in USD, and warnings such as SELECT * usage or missing filters on partitioned tables.
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": "estimate_query_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | BigQuery standard SQL query to estimate, e.g. SELECT ... FROM ... |