Execute Select
execute_selectRun read-only SELECT queries against IBM watsonx.data to retrieve rows from a specified catalog, schema, and running engine, with optional row limits.
Instructions
Execute read-only SELECT queries against watsonx.data.
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": {
"sql": "<sql>",
"catalog_name": "<catalog_name>",
"schema_name": "<schema_name>",
"engine_id": "<engine_id>"
},
"name": "execute_select"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | SQL SELECT query to execute (must start with SELECT) | |
| limit | No | Max rows to return (default: 500 if no LIMIT in query). Note: Using high limits will consume more tokens. | |
| engine_id | Yes | Engine to run query on (from list_engines, must be running) | |
| schema_name | Yes | Default schema for unqualified table names | |
| catalog_name | Yes | Target catalog (e.g., "iceberg_data", "tpch") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||