Datasource Create Bigquery
datasource_create_bigqueryCreate a BigQuery datasource from a table or custom SQL query, optionally attaching it to a report or validating fields with a dry run.
Instructions
Create a BigQuery datasource from a table or a custom query (Add data > BigQuery).
source: {project_id, dataset_id, table_id} for a table, or {project_id (billing project), sql, legacy_sql?, date_range_params?, viewer_email_param?} for a custom query (the params enable @DS_START_DATE/@DS_END_DATE and @DS_USER_EMAIL); optional name, billing_project_id. With a report (active or report_id) and attach_to_report it is embedded in that report and named in its datasourceAlias, ready for components; otherwise a reusable datasource owned by the account. dry_run reads the connector fields (validating access/SQL) without creating anything. Field names in the result are what components_create and formulas use.
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": {
"source": "<source>"
},
"name": "datasource_create_bigquery"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | A table (project_id + dataset_id + table_id) or a custom query (sql). | |
| dry_run | No | ||
| report_id | No | ||
| attach_to_report | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||