FruxonDocs

GCP BigQuery

Run SQL queries, list datasets and tables, and inspect schemas in Google BigQuery

The GCP BigQuery integration lets your agents run GoogleSQL queries, retrieve results from existing jobs, enumerate datasets and tables, and inspect table schemas — against a specific Google Cloud project.

Prerequisites

  • A Google Cloud project with the BigQuery API enabled.
  • A Project ID from the Google Cloud Console.
  • Credentials. Either:
    • A service account key (JSON) for the project — create it under IAM & Admin → Service Accounts → Keys. Grant the account BigQuery Data Viewer (read) and BigQuery Job User (run queries) at minimum.
    • Or a Google OAuth user sign-in if your agent should query under a specific user's identity.

For sensitive datasets, consider creating a scoped service account that only sees the projects/datasets the agent should reach.

Setup

  1. Open your agent in Agent Studio.
  2. In the Integrations panel, click Add Integration Config.
  3. Select GCP BigQuery from the integration list.
  4. Give the config a display name (e.g., "BigQuery — Analytics warehouse").
  5. Enter the Project ID, then either paste the service account key JSON or click Connect with Google for OAuth.
  6. Save the agent revision.

Using in Your Agent

  1. In an Agent Step, attach BigQuery tools from the tools panel.
  2. Tools are referenced as gcp_bigquery.run_query, gcp_bigquery.list_tables, etc.

run_query may return results inline for fast queries or a job reference for longer-running ones. Use get_query_results to paginate or wait on those job IDs.

Available Tools

Queries

ToolDescriptionAction Type
run_queryExecute a GoogleSQL query, returning results or a job reference if asyncReadOnly
get_query_resultsFetch results from a completed or running job, or paginate large result setsReadOnly

Datasets

ToolDescriptionAction Type
list_datasetsList all datasets in the project with IDs, names, and locationsReadOnly

Tables

ToolDescriptionAction Type
list_tablesList all tables in a dataset with IDs, types, and creation timesReadOnly
get_tableGet table metadata: schema, columns, types, row count, partitioning configReadOnly

On this page