Skip to content
Tools / BigQuery
BigQuery icon

BigQuery

Query your BigQuery data with a locked-down service account

BigQuery lets you run read-only analytics over the tables a connected service account can see — not a person's full cloud access.

Connect a dedicated service account, grant it Job User on the project, and give Data Viewer only on the datasets or tables you want exposed. Anything you do not grant stays invisible. Queries use the GoogleSQL dialect. Result sets stop at max_results so a wide table cannot flood the conversation.

What you can do

  • list_datasets — see which datasets the connected account can access
  • list_tables — list tables in a dataset
  • get_table_schema — inspect columns, types, and row counts before querying
  • run_query — run a GoogleSQL SELECT, optionally as a dry run or with a bytes billed cap

Who it's for

Data teams who want an agent to query the warehouse without sharing a user's cloud login. Especially useful when only a curated set of tables should be visible.

How to use it

  1. Start with list_datasets to see what the connected account can reach
  2. Call list_tables with a dataset id, then get_table_schema to learn columns
  3. Call run_query with a GoogleSQL SELECT. Set dry_run to estimate bytes scanned, or maximum_bytes_billed as a hard cap
  4. If truncated is true, add filters or raise max_results (up to 1000)

Getting started

Connect a BigQuery service account, then start with list_datasets. Grant Job User on the project and Data Viewer only on the tables you want exposed.

List Datasets

List BigQuery datasets the connected service account can see, including location. Follows paging up to 200 datasets and flags truncation if more remain.

Returns: Datasets the connected service account can access, with location and truncation
List Tables

List tables in a dataset the connected service account can read. Returns table ids and types. Follows paging up to 500 tables. Use get_table_schema for row counts.

Returns: Tables in the dataset with id and type, plus truncation
Get Table Schema

Get a table schema, row count, and size. Nested RECORD fields are flattened one level as parent.child. Use this before run_query to see available columns.

Returns: Table description, row count, size, and flattened schema fields
Run Query

Run a GoogleSQL SELECT against BigQuery. Returns rows as objects keyed by column name. Caps results at max_results (default 100, max 1000). Set dry_run to estimate bytes without running.

Returns: Query rows as objects, or a dry-run byte estimate, with truncation flags
Loading reviews...

Loading activity...

v0.012026-08-20
  • Initial release: connect a Google Cloud service account and query BigQuery — browse datasets and tables, inspect schemas, and run read-only SQL.

Connect ToolRouter to use BigQuery in Claude, ChatGPT, Copilot, and more — no code required.

Connect ToolRouter

Related Tools

Related Categories