get_table_columns
Retrieve column names and data types for one or more tables in a data source to verify column details before writing SQL queries.
Instructions
Get the column names and data types for one or more tables in a data source. Accepts a single table or a comma-separated list of tables. Use this to confirm exact column names and types before writing SQL with run_query or smart_query. Returns each table's columns; if a table name is not found, it suggests verifying it with list_tables.
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": {
"data_source_id": "<data_source_id>",
"table_name": "<table_name>"
},
"name": "get_table_columns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table_name | Yes | Table name(s), comma-separated (e.g., 'users' or 'users,orders') | |
| data_source_id | Yes | Data source ID from list_data_sources |