Skip to main content
Glama
BigQuery Analytics MCP

BigQuery Analytics MCP

by hram

bigquery_query

Read-only

Run one read-only GoogleSQL SELECT or WITH query against configured BigQuery datasets in Cloud Shell, with billing project and bytes caps enforced.

Instructions

Run one read-only GoogleSQL SELECT or WITH query in Cloud Shell, using the configured billing project and bytes cap. Use bigquery_setup to discover the configured sources.

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": "bigquery_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqlYes
max_rowsNo
max_bytes_billedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, but the description adds real context: execution happens in Cloud Shell against the configured billing project, a bytes cap is applied, and only a single statement is accepted. It does not disclose error behavior or what the result set looks like, which keeps it short of a 5.

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 filler, with the core action and its limits front-loaded before the pointer to the sibling tool.

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?

There is no output schema and no parameter documentation, so the description should say more about result shape and the max_rows/max_bytes_billed behavior. It covers the query-execution context well but leaves an agent partially guessing about inputs and returns.

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 full burden, yet it explains only the conceptual 'bytes cap' and leaves the sql parameter's dialect/format and max_rows (default 100, cap 1000) undocumented in prose. An agent must open the schema to learn anything about the three parameters.

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?

States a specific verb and resource ('Run one read-only GoogleSQL SELECT or WITH query'), with scope constraints (single statement, read-only, Cloud Shell) that make it clearly distinct from bigquery_setup.

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 routes the agent to bigquery_setup to discover configured sources before querying, and the 'read-only SELECT or WITH, one query' framing implies exclusions. It never states outright that DML/DDL or multiple statements are rejected, so exclusions are 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