describe_table
Inspect a PostgreSQL table's structure, including columns, data types, nullability, defaults, and constraints. Use it to understand table schema without writing queries.
Instructions
Show columns, data types, nullability, defaults, and constraints for a table.
Args: table: Table name. schema: Schema that owns the table (default: "public").
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 |
|---|---|---|---|
| table | Yes | ||
| schema | No | public |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |