googlebigquery-automation
Skill này làm gì
Công cụ này cho phép bạn chạy truy vấn trên cơ sở dữ liệu Google BigQuery thông qua Metabase. Bạn có thể thực thi lệnh SQL, khám phá dữ liệu và xem thông tin bảng.
Khi nào nên dùng
- ✓Khi bạn cần lấy dữ liệu cụ thể từ cơ sở dữ liệu.
- ✓Khi bạn muốn hiểu cấu trúc của các bảng và cột có sẵn.
- ✓Khi bạn muốn phân tích thông tin đã có trong BigQuery.
Liên kết skill
https://github.com/ComposioHQ/awesome-claude-skills/blob/master/composio-skills/googlebigquery-automation/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Liệt kê tất cả các bảng trong cơ sở dữ liệu có ID là 5.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Công cụ kết nối với Metabase, được liên kết với BigQuery của bạn. Nó gửi lệnh của bạn và trả về kết quả.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Google BigQuery Automation via Rube MCP
Run SQL queries, explore database schemas, and analyze datasets through the Metabase integration using Rube MCP (Composio).
Toolkit docs: composio.dev/toolkits/googlebigquery
Prerequisites
- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
- Active connection via
RUBE_MANAGE_CONNECTIONSwith toolkitmetabase - A Metabase instance connected to your BigQuery data source
- Always call
RUBE_SEARCH_TOOLSfirst to get current tool schemas
Setup
Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.
- Verify Rube MCP is available by confirming
RUBE_SEARCH_TOOLSresponds - Call
RUBE_MANAGE_CONNECTIONSwith toolkitmetabase - If connection is not ACTIVE, follow the returned auth link to complete setup
- Confirm connection status shows ACTIVE before running any workflows
Note: BigQuery data is accessed through Metabase, a business intelligence tool that connects to BigQuery as a data source. The tools below execute queries and retrieve metadata through Metabase's API.
Core Workflows
1. Run a Native SQL Query
Use METABASE_POST_API_DATASET with type native to execute raw SQL queries against your BigQuery database.
Tool: METABASE_POST_API_DATASET
Parameters:
- database (required): Metabase database ID (integer)
- type (required): "native" for SQL queries
- native (required): Object with "query" string
- query: Raw SQL string (e.g., "SELECT * FROM users LIMIT 10")
- template_tags: Parameterized query variables (optional)
- constraints: { "max-results": 1000 } (optional)
2. Run a Structured MBQL Query
Use METABASE_POST_API_DATASET with type query for Metabase Query Language queries with built-in aggregation and filtering.
Tool: METABASE_POST_API_DATASET
Parameters:
- database (required): Metabase database ID
- type (required): "query" for MBQL
- query (required): Object with:
- source-table: Table ID (integer)
- aggregation: e.g., [["count"]] or [["sum", ["field", 5, null]]]
- breakout: Group-by fields
- filter: Filter conditions
- limit: Max rows
- order-by: Sort fields
3. Get Query Metadata
Use METABASE_POST_API_DATASET_QUERY_METADATA to retrieve metadata about databases, tables, and fields available for querying.
Tool: METABASE_POST_API_DATASET_QUERY_METADATA
Parameters:
- database (required): Metabase database ID
- type (required): "query" or "native"
- query (required): Query object (e.g., {"source-table": 1})
4. Convert Query to Native SQL
Use METABASE_POST_API_DATASET_NATIVE to convert an MBQL query into its native SQL representation.
Tool: METABASE_POST_API_DATASET_NATIVE
Parameters:
- database (required): Metabase database ID
- type (required): "native"
- native (required): Object with "query" and optional "template_tags"
- parameters: Query parameter values (optional)
5. List Available Databases
Use METABASE_GET_API_DATABASE to discover all database connections configured in Metabase.
Tool: METABASE_GET_API_DATABASE
Description: Retrieves a list of all Database instances configured in Metabase.
Note: Call RUBE_SEARCH_TOOLS to get the full schema for this tool.
6. Get Database Schema Metadata
Use METABASE_GET_API_DATABASE_ID_METADATA to retrieve complete table and field information for a specific database.
Tool: METABASE_GET_API_DATABASE_ID_METADATA
Description: Retrieves complete metadata for a specific database including
all tables and fields.
Note: Call RUBE_SEARCH_TOOLS to get the full schema for this tool.
Common Patterns
- Discover then query: Use
METABASE_GET_API_DATABASEto find database IDs, thenMETABASE_GET_API_DATABASE_ID_METADATAto explore tables and fields, thenMETABASE_POST_API_DATASETto run queries. - SQL-first approach: Use
METABASE_POST_API_DATASETwithtype: "native"and write standard SQL queries for maximum flexibility. - Parameterized queries: Use
template_tagsin native queries for safe parameterization (e.g.,SELECT * FROM users WHERE id = {{user_id}}). - Schema exploration: Use
METABASE_POST_API_DATASET_QUERY_METADATAto understand table structures before building complex queries.
…
Câu hỏi thường gặp
Metabase là gì?
Metabase là công cụ trực quan hóa dữ liệu, kết nối với các cơ sở dữ liệu như BigQuery để đơn giản hóa việc phân tích.
Làm sao tìm ID của cơ sở dữ liệu?
Bạn cần dùng một lệnh cụ thể để liệt kê các cơ sở dữ liệu được kết nối với Metabase và tìm ID đúng.
Tôi có thể dùng bất kỳ SQL nào không?
Bạn nên dùng cú pháp SQL của Google BigQuery (Standard SQL).
Chi tiết
Mô tả gốc của tác giả
Automate Google BigQuery tasks via Rube MCP (Composio): run SQL queries, explore datasets and metadata, execute MBQL queries via Metabase integration. Always search tools first for current schemas.
Độ phổ biến
- Sao GitHub
- 77k
- Vị trí xếp hạng
- #2112
- Giấy phép
- —
- Cập nhật
- 18/9/2026
Bình luận
- …
Thêm skill từ kho mã này
artifacts-builder
77kGiúp agent của bạn xây dựng giao diện người dùng phức tạp. Dùng công nghệ hiện đại để tạo trang web tương tác phong phú.
brand-guidelines
77kGiúp agent của bạn áp dụng màu sắc và phông chữ thương hiệu chính thức cho tài liệu. Giữ bản sắc trực quan cho mọi nội dung cần đúng phong cách công ty.
canvas-design
77kGiúp agent của bạn tạo tác phẩm nghệ thuật gốc dạng .png và .pdf. Dùng khi cần poster, tranh nghệ thuật hoặc thiết kế tĩnh khác.
changelog-generator
77kGiúp agent của bạn tạo ghi chú phát hành dành cho người dùng từ các commit mã. Biến thông tin kỹ thuật thành văn bản dễ hiểu.
Skill tương tự
knowledge-automation
394kGiúp agent của bạn thiết lập tác vụ định kỳ đưa nội dung mới vào kho Knowledge theo lịch, rồi kiểm tra tác vụ có chạy không.
knowledge-source-ingest
394kGiúp agent của bạn cập nhật Knowledge vault với các mục mới từ kênh chat, nguồn tin hoặc hộp thư, mà không thêm lại những gì đã có.
benchmark
280kGiúp agent của bạn đo tốc độ và hiệu suất của code, hữu ích để đảm bảo mọi thứ nhanh và tìm ra những chỗ chậm.