ch_table_schema
Retrieve comprehensive table metadata including columns, engine, keys, partitions, and sample data to understand table structure before writing queries.
Instructions
Get comprehensive table metadata: columns, engine, keys, partitions, and sample data.
Returns column types, partition/sorting/primary keys, TTL settings, row counts, disk usage, partition breakdown, and 5 sample rows. Essential for understanding table structure before writing queries.
Args: table: Table name database: Database name (default: cdc_pipeline)
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": {
"table": "<table>"
},
"name": "ch_table_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| database | No | cdc_pipeline |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |