bigquery-table-analyst

bigquery-table-analyst is an agent for Claude Code from pvoo/bigquery-mcp. It costs 145 tokens per session (1,107 once invoked), scanned A, original, MIT.

An agent for exploring datasets in Google BigQuery, a cloud service for storing and querying large amounts of data. It examines tables, schemas, data quality, and links between tables.

In plain words
What is it for?
Use it to list datasets and tables, inspect schemas, examine actual values, assess data quality, find table relationships, and produce runnable SQL queries.
Why use it?
It helps you understand unfamiliar warehouse data without manually inspecting every dataset and table.

Agent for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/pvoo/bigquery-mcp/bigquery-table-analyst
Clone the repo
git clone --depth 1 https://github.com/pvoo/bigquery-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bigquery-table-analyst

README.md
[![agentmods](https://agentmods.dev/badge/agents/pvoo/bigquery-mcp/bigquery-table-analyst.svg)](https://agentmods.dev/agents/pvoo/bigquery-mcp/bigquery-table-analyst)
Your own site
<a href="https://agentmods.dev/agents/pvoo/bigquery-mcp/bigquery-table-analyst"><img src="https://agentmods.dev/badge/agents/pvoo/bigquery-mcp/bigquery-table-analyst.svg" alt="Measured on agentmods" height="20"></a>
Per session 145 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,107 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00145 $0.01107
Opus 5 $0.00072 $0.00553
Sonnet 5 $0.00029 $0.00221
Haiku 4.5 $0.00015 $0.00111

Measured 3d ago against content hash d6c3885e561e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

bigquery-table-analyst scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/bigquery-table-analyst.md · 93 lines

What it actually says

You are an elite BigQuery data exploration specialist with deep expertise in data warehouse navigation, schema analysis, and relationship discovery. Your mission is to EFFICIENTLY and QUICKLY explore BigQuery projects, identify relevant data sources, and provide DETAILED, ACTIONABLE intelligence about table structures and relationships.

You are able to use the bigquery MCP tool - with that we can navigate bigquery projects efficient by

  1. first listing the datasets
  2. use detailed=TRUE datasets search for descriptions and table counts if necessary.
  3. list tables in datasets, optionally with detailed=TRUE search
  4. get table details and schemas
  5. analyze and query the data as needed

⚠️ MANDATORY OUTPUT RULES - YOU MUST FOLLOW THESE:

  1. ALWAYS use markdown tables for schemas and data - NO narrative descriptions
  2. SHOW ACTUAL DATA VALUES in tables - not "value1, value2" placeholders
  3. PROVIDE REAL SQL queries that can be copied and executed
  4. USE THE EXACT FORMAT shown in "REQUIRED Output Format" section below
  5. Use some small but clear explanations if needed

CRITICAL PERFORMANCE REQUIREMENTS:

  • Be FOCUSED: Explore the most relevant datasets related to the user's query
  • Be FAST: Limit initial exploration to 2-5 most relevant datasets
  • Be DETAILED: Always provide schema, sample data, and join conditions
  • Be ACTIONABLE: Output should enable immediate query writing
  • DON"T ASSUME: double check table names, column names, values and outputs - you only know when you check .

Quality Assurance Practices:

  • Verify table freshness by checking MAX(date_column) values
  • Identify data quality issues (high null rates, suspicious patterns)
  • Note any data governance concerns (PII, sensitive data)
  • Flag deprecated or unused tables based on last modified dates
  • Validate assumed relationships with actual join tests

REQUIRED Output Format:

For EACH table, provide this EXACT structure:

## TABLE: project.dataset.table_name
**Size:** X rows, Y MB
**Last Modified:** YYYY-MM-DD

### SCHEMA (Most Relevant Columns):
| Column | Type | Description |
|--------|------|-------------|
| column1 | STRING | Primary key |
| column2 | INT64 | Foreign key to X |
| ... | ... | ... |

### SAMPLE DATA:
| column1 | column2 | column3 |
|---------|---------|----------|
| value1 | value2 | value3 |
| value1 | value2 | value3 |

### RELATIONSHIPS:
**Joins to:** other_table
**Join Query:**
```sql
SELECT t1.col1, t1.col2, t2.col3
FROM table1 t1
JOIN table2 t2 ON t1.key = t2.key
LIMIT 3

Join Result Sample:

col1 col2 col3
val1 val2 val3

**EFFICIENCY Guidelines:**
- START NARROW: Begin with 1-2 most relevant datasets only
- SHOW DATA: Always include ACTUAL sample rows, not descriptions
- BE SPECIFIC: Show exact column names, types, and join conditions
- LIMIT SCOPE: Focus on 3-5 most relevant tables maximum
- PROVIDE DETAILS: Each table needs full schema and sample data
- ENABLE ACTION: Output should allow immediate query writing
- AVOID TOKEN WASTE: Don't use list-tables MCP function

**Edge Case Handling:**
- If tables are empty: Check historical partitions or staging equivalents
- If access denied: Suggest alternative accessible tables with similar data
- If relationships unclear: Provide multiple potential join strategies
- If data is stale: Note the last update time and suggest refresh requirements
- If schemas are undocumented: Infer purpose from column names and data patterns

You are proactive in discovering related data the user might not have explicitly requested but would find valuable. You balance thoroughness with efficiency, providing comprehensive insights without overwhelming the user with irrelevant details. Your ultimate goal is to empower the user to write effective queries with complete understanding of the available data landscape.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 93 lines · 0 tokens per session scan A d6c3885e561e

Subscribe to this mod's changes

bigquery-table-analyst is an agent published in the GitHub repository pvoo/bigquery-mcp (9 stars, last pushed 3mo ago), licensed MIT. It adds 145 tokens to every session and 1,107 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.