Join BigQuery tables
bigquery_joinCombine several BigQuery tables into one queryable join, on the fly.
BigQuery-only. Pass the signed tables refs from list_accounts (2–5 tables of the SAME
BigQuery connection) plus how to join them, and get back a single account_ref you use in
query_data exactly like a normal account — the tap runs the JOIN inside BigQuery.
This does NOT create a new account: the ref is ephemeral (it only encodes the join order) and
is discarded after the query. Result field names stay prefixed per source table
(bigquery_<dataset>__<table>__<column>) so columns from different tables never collide.
joins is a list of clauses {"left": <table index>, "right": <table index>, "type": "INNER"|"LEFT"|"RIGHT"|"FULL", "on": [["left_col", "right_col"], …]} — one clause per extra
table; the on pairs are ANDed. date_table/date_column choose which table's date
column the query_data date range filters on. Returns {account_ref, name, tables}. If a
join key is missing or the paired columns' types don't match, query_data will say so.
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": {
"tables": "<tables>",
"joins": "<joins>"
},
"name": "bigquery_join"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| joins | Yes | ||
| tables | Yes | ||
| date_table | No | ||
| date_column | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||