query_table
Execute SQL queries against Unity Catalog tables and return results, using a specified SQL warehouse to retrieve data for AI-assisted analysis.
Instructions
Execute a SQL query against a Unity Catalog table and return results. Requires a SQL warehouse.
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": {
"warehouse_id": "<warehouse_id>",
"query": "<query>"
},
"name": "query_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | SQL query to execute (e.g., "SELECT * FROM catalog.schema.table LIMIT 10") | |
| schema | No | Default schema to use (optional) | |
| catalog | No | Default catalog to use (optional) | |
| warehouse_id | Yes | SQL warehouse ID to use for executing the query |