# Google BigQuery

Google BigQuery is a fully managed data warehouse for large-scale data analytics, offering fast SQL queries and machine learning capabilities on massive datasets

- **Category:** databases
- **Auth:** OAUTH2, GOOGLE_SERVICE_ACCOUNT
- **Tools:** 60
- **Triggers:** 0
- **Slug:** `GOOGLEBIGQUERY`
- **Version:** 20260217_00

## Tools

### Cancel BigQuery Job

**Slug:** `GOOGLEBIGQUERY_CANCEL_JOB`

Tool to cancel a running BigQuery job. This call returns immediately, and you need to poll for the job status to see if the cancel completed successfully. Note that cancelled jobs may still incur costs.

### Create Capacity Commitment

**Slug:** `GOOGLEBIGQUERY_CREATE_CAPACITY_COMMITMENT`

Tool to create a new capacity commitment resource in BigQuery Reservation. Use when you need to purchase compute capacity (slots) with a committed period of usage for BigQuery jobs. Supports various commitment plans (FLEX, MONTHLY, ANNUAL, THREE_YEAR) and editions (STANDARD, ENTERPRISE, ENTERPRISE_PLUS).

### Create BigQuery Connection

**Slug:** `GOOGLEBIGQUERY_CREATE_CONNECTION`

Tool to create a new BigQuery connection to external data sources using the BigQuery Connection API. Use when setting up connections to AWS, Azure, Cloud Spanner, Cloud SQL, Salesforce DataCloud, or Apache Spark.

### Create Analytics Hub Data Exchange

**Slug:** `GOOGLEBIGQUERY_CREATE_DATA_EXCHANGE`

Tool to create a new Analytics Hub data exchange for sharing BigQuery datasets. Use when you need to set up a container for data sharing with descriptive information and listings.

### Create Analytics Hub Listing

**Slug:** `GOOGLEBIGQUERY_CREATE_DATAEXCHANGES_LISTINGS`

Tool to create a new listing in a BigQuery Analytics Hub data exchange. Use when you need to share a BigQuery dataset with specific subscribers or make it available for discovery. The dataset must exist and be in the same region as the data exchange.

### Create BigQuery Data Policy

**Slug:** `GOOGLEBIGQUERY_CREATE_DATA_POLICY`

Tool to create a new BigQuery data policy with the given dataPolicyId, policy tag, and data policy type. Use when you need to set up data masking rules or column-level security for sensitive data governed by policy tags in Data Catalog. The policy tag must already exist before creating the data policy.

### Create BigQuery Dataset

**Slug:** `GOOGLEBIGQUERY_CREATE_DATASET`

Tool to create a new BigQuery dataset with explicit location, labels, and description using the BigQuery Datasets API. Use when the workflow needs to set up a staging/warehouse dataset and correctness of region is critical to avoid downstream job location mismatches. Surfaces 409 Already Exists errors cleanly without retrying.

### Create Analytics Hub Listing

**Slug:** `GOOGLEBIGQUERY_CREATE_LISTING`

Tool to create a new listing in a data exchange using Analytics Hub API. Use when publishing a BigQuery dataset to make it available for subscription by other users or organizations.

### Create BigQuery Data Policy (v2beta1)

**Slug:** `GOOGLEBIGQUERY_CREATE_LOCATIONS_DATAPOLICIES`

Tool to create a new data policy under a project with specified location using the v2beta1 BigQuery Data Policy API. Use when you need to set up data masking rules or column-level security for sensitive data. The v2beta1 endpoint uses a nested request structure.

### Create Analytics Hub Query Template

**Slug:** `GOOGLEBIGQUERY_CREATE_QUERY_TEMPLATE`

Tool to create a new query template in a BigQuery Analytics Hub Data Clean Room (DCR) data exchange. Use when you need to define predefined and approved queries for data clean room use cases. Query templates must be created in DCR data exchanges only.

### Create BigQuery Reservation

**Slug:** `GOOGLEBIGQUERY_CREATE_RESERVATION`

Tool to create a new BigQuery reservation resource to guarantee compute capacity (slots) for query and pipeline jobs. Use when you need to reserve dedicated compute resources for predictable performance and cost management. Reservations can be configured with autoscaling, concurrency limits, and edition-based features.

### Create BigQuery Reservation Assignment

**Slug:** `GOOGLEBIGQUERY_CREATE_RESERVATION_ASSIGNMENT`

Tool to create a BigQuery reservation assignment that allows a project, folder, or organization to submit jobs using slots from a specified reservation. Use when setting up resource allocation for BigQuery workloads. Note: A resource can only have one assignment per (job_type, location) combination.

### Create BigQuery Routine

**Slug:** `GOOGLEBIGQUERY_CREATE_ROUTINE`

Tool to create a new user-defined routine (function or procedure) in a BigQuery dataset. Use when you need to define SQL, JavaScript, Python, Java, or Scala functions/procedures for reusable logic, data transformations, or custom masking. Supports scalar functions, table-valued functions, procedures, and aggregate functions with comprehensive type definitions.

### Create BigQuery Table

**Slug:** `GOOGLEBIGQUERY_CREATE_TABLE`

Tool to create a new, empty table in a BigQuery dataset. Use when setting up data infrastructure for standard tables, external tables, views, or materialized views. Supports partitioning, clustering, and encryption configuration.

### Delete BigQuery Dataset

**Slug:** `GOOGLEBIGQUERY_DELETE_DATASET`

Tool to delete a BigQuery dataset specified by datasetId via the datasets.delete API. Before deletion, you must delete all tables unless deleteContents=True is specified. Use when cleaning up test datasets or removing unused data warehouses. Immediately after deletion, you can create another dataset with the same name.

### Delete BigQuery Job Metadata

**Slug:** `GOOGLEBIGQUERY_DELETE_JOB_METADATA`

Tool to delete the metadata of a BigQuery job. Use when you need to remove job metadata from the system. If this is a parent job with child jobs, metadata from all child jobs will be deleted as well.

### Delete BigQuery Routine

**Slug:** `GOOGLEBIGQUERY_DELETE_ROUTINE`

Tool to delete a BigQuery routine by its ID. Use when you need to remove a stored procedure, user-defined function, or table function from a dataset. This operation is irreversible.

### Delete BigQuery Table

**Slug:** `GOOGLEBIGQUERY_DELETE_TABLE`

Tool to delete a BigQuery table from a dataset. Use when you need to remove a table and all its data permanently. The operation deletes all data in the table and cannot be undone.

### Get BigQuery ML Model

**Slug:** `GOOGLEBIGQUERY_GET_BIGQUERY_MODEL`

Tool to retrieve a specific BigQuery ML model resource by model ID. Use when you need detailed information about a trained machine learning model including its configuration, training runs, hyperparameters, and evaluation metrics.

### Get BigQuery Connection IAM Policy

**Slug:** `GOOGLEBIGQUERY_GET_CONNECTION_IAM_POLICY`

Tool to get the IAM access control policy for a BigQuery connection resource. Returns an empty policy if the resource exists but has no policy set. Use this to check who has access to a specific connection before modifying permissions.

### Get BigQuery Dataset Metadata

**Slug:** `GOOGLEBIGQUERY_GET_DATASET`

Tool to retrieve BigQuery dataset metadata including location via the datasets.get API. Use this before creating jobs/queries if the workflow has been failing with location mismatch to confirm the dataset's region and correct the job location accordingly.

### Get BigQuery Job

**Slug:** `GOOGLEBIGQUERY_GET_JOB`

Tool to retrieve information about a specific BigQuery job. Returns job configuration, status, and statistics. Use this to check job status after running queries or to get details about job execution.

### Get BigQuery Query Results

**Slug:** `GOOGLEBIGQUERY_GET_QUERY_RESULTS`

Tool to get the results of a BigQuery query job via RPC. Use this to retrieve results after running a query, or to check job completion status and fetch paginated results.

### Get BigQuery Routine

**Slug:** `GOOGLEBIGQUERY_GET_ROUTINE`

Tool to retrieve a BigQuery routine (user-defined function or stored procedure) by its ID. Use to inspect routine definitions, arguments, return types, and metadata.

### Get BigQuery Service Account

**Slug:** `GOOGLEBIGQUERY_GET_SERVICE_ACCOUNT`

Tool to get the service account for a project used for interactions with Google Cloud KMS. Use when you need to retrieve the BigQuery service account email for KMS encryption configuration or key access permissions.

### Get BigQuery Table IAM Policy

**Slug:** `GOOGLEBIGQUERY_GET_TABLE_IAM_POLICY`

Tool to retrieve the IAM access control policy for a BigQuery table resource. Returns an empty policy if the resource exists but has no policy set. Use this to check current access permissions before modifying them.

### Get BigQuery Table Schema

**Slug:** `GOOGLEBIGQUERY_GET_TABLE_SCHEMA`

Tool to fetch a BigQuery table's schema and metadata without querying row data. Use before generating SQL queries to avoid column name typos and confirm field types and nullable modes. This is especially useful when INFORMATION_SCHEMA access is restricted.

### Insert Data into BigQuery Table

**Slug:** `GOOGLEBIGQUERY_INSERT_ALL`

Tool to stream data into BigQuery one record at a time without running a load job. Use when you need immediate data availability or inserting small batches. Supports row-level deduplication via insertId and error handling via skipInvalidRows.

### Insert BigQuery Job

**Slug:** `GOOGLEBIGQUERY_INSERT_JOB`

Tool to start a new asynchronous BigQuery job (query, load, extract, or copy). Use when you need to run a query as a job, load data from Cloud Storage, extract table data to GCS, or copy tables. For dry-run validation without execution, set dryRun to true in configuration.

### List Analytics Hub Listings

**Slug:** `GOOGLEBIGQUERY_LIST_ANALYTICS_HUB_LISTINGS`

Tool to list all listings in a given Analytics Hub data exchange. Use when you need to discover available data listings within a specific data exchange that can be subscribed to for data sharing.

### List BigQuery Connections

**Slug:** `GOOGLEBIGQUERY_LIST_BIG_QUERY_CONNECTIONS`

Tool to list BigQuery connections in a given project and location. Use when you need to discover available external data source connections (Cloud SQL, AWS, Azure, Spark, etc.) configured for BigQuery.

### List BigQuery Capacity Commitments

**Slug:** `GOOGLEBIGQUERY_LIST_CAPACITY_COMMITMENTS`

Tool to list all capacity commitments for the admin project. Use when you need to view purchased compute capacity slots and their commitment details (plan, state, duration).

### List Data Exchange Listings

**Slug:** `GOOGLEBIGQUERY_LIST_DATAEXCHANGES_LISTINGS`

Tool to list all listings in a given Analytics Hub data exchange using the v1beta1 API. Use when you need to discover available data listings within a specific data exchange that can be subscribed to for data sharing.

### List BigQuery Data Policies

**Slug:** `GOOGLEBIGQUERY_LIST_DATA_POLICIES`

Tool to list all data policies in a specified parent project and location. Use when you need to discover data masking policies and column-level security policies that are configured for BigQuery datasets.

### List BigQuery Datasets

**Slug:** `GOOGLEBIGQUERY_LIST_DATASETS`

Tool to list datasets in a specific BigQuery project, including dataset locations. Use after identifying an accessible project to discover available datasets and their locations before querying. The dataset location is critical for avoiding location-related query/job errors.

### List BigQuery Jobs

**Slug:** `GOOGLEBIGQUERY_LIST_JOBS`

Tool to list all jobs that you started in a BigQuery project. Job information is available for a six month period after creation. Jobs are sorted in reverse chronological order by creation time. Use to monitor query execution, track job statuses, and retrieve job history.

### List BigQuery Data Transfer Locations

**Slug:** `GOOGLEBIGQUERY_LIST_LOCATIONS`

Tool to list information about supported locations for BigQuery Data Transfer Service. Use when you need to discover available regions/locations where BigQuery Data Transfer operations can be performed.

### List Connections in Location

**Slug:** `GOOGLEBIGQUERY_LIST_LOCATIONS_CONNECTIONS`

Tool to list BigQuery connections in a given project and location using the v1beta1 API. Use when you need to discover available external data source connections (Cloud SQL, AWS, Azure, Spark, etc.) configured for BigQuery in a specific location.

### List BigQuery Location Data Policies

**Slug:** `GOOGLEBIGQUERY_LIST_LOCATIONS_DATAPOLICIES`

Tool to list all data policies in a specified parent project and location using the v2beta1 API. Use when you need to discover data masking policies and column-level security policies configured for BigQuery datasets.

### List BigQuery Models

**Slug:** `GOOGLEBIGQUERY_LIST_MODELS`

Tool to list all BigQuery ML models in a specified dataset. Requires READER dataset role. Use this to discover available models before getting detailed information via models.get method.

### List Organization Data Exchanges

**Slug:** `GOOGLEBIGQUERY_LIST_ORGANIZATION_DATA_EXCHANGES`

Tool to list all data exchanges from projects in a given organization and location using Analytics Hub API. Use when you need to discover available data exchanges within an organization that can be used for data sharing.

### List BigQuery Projects

**Slug:** `GOOGLEBIGQUERY_LIST_PROJECTS`

Tool to list BigQuery projects to which the user has been granted any project role. Returns projects with at least READ access. For enhanced capabilities, consider using the Resource Manager API.

### List Analytics Hub Query Templates

**Slug:** `GOOGLEBIGQUERY_LIST_QUERY_TEMPLATES`

Tool to list all query templates in a given Analytics Hub data exchange. Use when you need to discover available query templates that define predefined and approved queries for data clean room use cases.

### List BigQuery Reservation Assignments

**Slug:** `GOOGLEBIGQUERY_LIST_RESERVATION_ASSIGNMENTS`

Tool to list BigQuery reservation assignments. Only explicitly created assignments will be returned (no expansion or merge happens). Use wildcard "-" in parent path to list assignments across all reservations in a location.

### List BigQuery Reservation Groups

**Slug:** `GOOGLEBIGQUERY_LIST_RESERVATION_GROUPS`

Tool to list all BigQuery reservation groups for a project in a specified location. Use when you need to discover available reservation groups which serve as containers for reservations.

### List BigQuery Reservations

**Slug:** `GOOGLEBIGQUERY_LIST_RESERVATIONS`

Tool to list all BigQuery reservations for a project in a specified location. Use when you need to discover available reservations or view reservation details including slot capacity and autoscale configuration.

### List BigQuery Routines

**Slug:** `GOOGLEBIGQUERY_LIST_ROUTINES`

Tool to list all routines (user-defined functions and stored procedures) in a BigQuery dataset. Requires the READER dataset role. Use this to discover available routines before executing or inspecting them.

### List BigQuery Row Access Policies

**Slug:** `GOOGLEBIGQUERY_LIST_ROW_ACCESS_POLICIES`

Tool to list all row access policies on a specified BigQuery table. Use when you need to discover which row-level security policies are applied to a table and their filter predicates.

### List BigQuery Table Data

**Slug:** `GOOGLEBIGQUERY_LIST_TABLE_DATA`

Tool to list the content of a BigQuery table in rows via the REST API. Use this to retrieve actual data from a table without writing SQL queries. Returns paginated results with row data in the native BigQuery format.

### List BigQuery Tables

**Slug:** `GOOGLEBIGQUERY_LIST_TABLES`

Tool to list tables in a BigQuery dataset via the REST API. Use this early in exploration to discover accessible tables without relying on INFORMATION_SCHEMA, especially when SQL-based metadata queries are blocked or restricted. This provides a deterministic inventory of tables even when dataset-level permissions prevent INFORMATION_SCHEMA access.

### Patch BigQuery Dataset

**Slug:** `GOOGLEBIGQUERY_PATCH_DATASET`

Tool to update an existing BigQuery dataset using RFC5789 PATCH semantics. Only replaces fields provided in the request, leaving other fields unchanged. Use when you need to modify dataset properties like description, labels, expiration settings, or access controls without affecting other configuration.

### Patch BigQuery ML Model

**Slug:** `GOOGLEBIGQUERY_PATCH_MODEL`

Tool to update specific fields in an existing BigQuery ML model using PATCH semantics. Use when you need to modify model metadata like description, friendly name, labels, or expiration time without replacing the entire model resource.

### Patch BigQuery Table

**Slug:** `GOOGLEBIGQUERY_PATCH_TABLE`

Tool to update specific fields in an existing BigQuery table using RFC5789 PATCH semantics. Only the fields provided in the request are updated; unspecified fields remain unchanged. Use when you need to modify table metadata like description, friendly name, labels, or expiration time without replacing the entire table resource.

### Query

**Slug:** `GOOGLEBIGQUERY_QUERY`

Query Tool will run a SQL query in BigQuery using the REST API. Note: Make sure the query uses proper BigQuery SQL syntax. For example, SELECT * FROM `project.dataset.table` WHERE column_name = 'value'

### Search All BigQuery Reservation Assignments

**Slug:** `GOOGLEBIGQUERY_SEARCH_ALL_ASSIGNMENTS`

Tool to search all BigQuery reservation assignments for a specified resource in a particular region. Use when you need to find assignments for a project, folder, or organization. Returns assignments created on the resource or its closest ancestor, covering all JobTypes.

### Undelete BigQuery Dataset

**Slug:** `GOOGLEBIGQUERY_UNDELETE_DATASET`

Tool to undelete a BigQuery dataset within the time travel window. If a deletion time is specified, the dataset version deleted at that time is undeleted; otherwise, the most recently deleted version is restored.

### Update BigQuery Connection

**Slug:** `GOOGLEBIGQUERY_UPDATE_CONNECTION`

Tool to update a specified BigQuery connection using the BigQuery Connection API. Use when you need to modify connection properties such as friendly name, description, or connection-specific settings. For security reasons, credentials are automatically reset if connection properties are included in the update mask.

### Update BigQuery Dataset

**Slug:** `GOOGLEBIGQUERY_UPDATE_DATASET`

Tool to update information in an existing BigQuery dataset using the PUT method. The update method replaces the entire dataset resource, whereas the patch method only replaces fields that are provided in the submitted dataset resource. Use when you need to modify dataset properties like description, access controls, or default settings.

### Update BigQuery Routine

**Slug:** `GOOGLEBIGQUERY_UPDATE_ROUTINE`

Tool to update an existing BigQuery routine (function or stored procedure). This replaces the entire routine resource with the provided definition. Use when modifying routine logic, arguments, return types, or other configuration. Ensure all required fields are provided as this is a full replacement operation.

### Update BigQuery Table

**Slug:** `GOOGLEBIGQUERY_UPDATE_TABLE`

Tool to update an existing BigQuery table. The update method replaces the entire Table resource, whereas the patch method only replaces fields that are provided. Use when you need to modify table properties like schema, description, labels, partitioning, or clustering configuration.
