Describe table
describe_tableRetrieve a table's exact column names and data types before writing queries, using read-only metadata so you avoid guessing columns and querying rows.
Instructions
Get the exact columns and types of one table. Read-only.
Always describe a table before querying it; column names you have
not seen here are guesses. It reads the engine's metadata and
statistics, never the table's rows. A table outside your grant is
refused before the engine is asked; a missing one errors with a
pointer to list_catalogs. Answers are cached, 5 minutes by default,
so a new column can lag. row_estimate is the engine's row-count
statistic, null when it has none or can't be trusted (views, tables
without stats, Pinot tables with a realtime part). Column comments
are null when unset, and always on Pinot.
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": {
"catalog": "<catalog>",
"schema": "<schema>",
"table": "<table>"
},
"name": "describe_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | Table name as list_catalogs shows it. | |
| schema | Yes | Schema name as list_catalogs shows it. On Pinot a schema is a Pinot database, such as `default`. | |
| catalog | Yes | Catalog name as list_catalogs shows it. On Pinot it is always `pinot`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| schema | Yes | ||
| catalog | Yes | ||
| columns | Yes | ||
| comment | No | ||
| row_estimate | No |