Describe table
describe_tableInspect a table’s full schema—columns, types, nullability, defaults, primary and foreign keys, indexes, and unique constraints—before querying an unfamiliar table.
Instructions
Full detail for one table: every column with its type, nullability and default; the primary key; declared foreign keys; indexes; and unique constraints. Use before querying an unfamiliar table. Use get_table_sample for row values or describe_relationships for the database-wide join map.
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": "describe_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alias | No | Alias from list_connections. Omit only when exactly one database is open. | |
| table | Yes | Table or view name from list_tables, e.g. public.orders. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||