Skip to main content
Glama
Suganthan-Mohanadasan

BigQuery MCP Server

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sqlYesThe SQL query to estimate cost for
project_idNoOverride the default project ID
Behavior4/5

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

No annotations provided, so description carries full burden. It discloses the key behavior: dry-run, no execution, returns byte count. This is sufficient for understanding side effects, though it could mention permissions or rate limits.

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?

Two sentences, no redundancy, front-loaded with the core action. Efficiently communicates purpose and usage.

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

Completeness5/5

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

For a simple tool with full schema coverage and no output schema, the description covers purpose, usage, and behavior comprehensively. The dry-run aspect makes context clear without needing more.

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

Parameters3/5

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

Schema covers both parameters with descriptions, so description adds little beyond. The description of project_id as 'Override the default project ID' is already in schema; tool description adds no further semantics.

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

Purpose5/5

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

Clearly states it performs a dry-run of a SQL query to estimate bytes scanned, distinguishing it from query execution. The phrase 'without actually executing it' makes the resource and behavior unambiguous.

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

Usage Guidelines4/5

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

Explicitly advises using this before expensive queries as a cost check. It implies the alternative is actual execution, but does not name sibling tools or state when not to use it in explicit terms.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Suganthan-Mohanadasan/Suganthans-BigQuery-MCP-Server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server