Skip to main content
Glama

Bigquery query dry run

bigquery.query.dry_run
Read-onlyIdempotent

Estimate scanned bytes and USD cost of a BigQuery query without running it or incurring billing charges.

Instructions

Dry-run a query: estimate scanned bytes + USD cost ($6.25/TiB), billing nothing.

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": {
      "project_id": "<project_id>",
      "sql": "<sql>"
    },
    "name": "bigquery.query.dry_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqlYes
project_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover readOnly/idempotent/non-destructive, but the description adds genuinely new behavior: the exact pricing rate ($6.25/TiB) and the guarantee that no billing occurs, which matters for a query tool where read-only does not normally imply zero cost. It does not mention limits on query types (e.g., DDL) that a dry run may reject.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with the verb first and the payoff (cost estimate, no billing) immediately after. No filler words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Output schema exists and annotations are rich, so return shape and safety profile are covered, and the cost model is a useful addition. However, for a tool whose only inputs are undocumented, the definition leaves the caller guessing about SQL constraints and project scoping.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the burden of explaining 'sql' and 'project_id' — yet it says nothing about either. An agent gets no guidance on SQL dialect, required project scoping, or whether the SQL must be a SELECT.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb ('Dry-run') and resource ('a query') plus the outputs produced ('estimate scanned bytes + USD cost'). This implicitly separates it from bigquery.query.run, though it never names that sibling explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'Dry-run' and 'billing nothing' strongly imply this is a pre-flight cost check before executing, but the description never states 'use this before bigquery.query.run' or any explicit when-not condition. Usage is inferred rather than declared.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools