describe_table
Retrieve column metadata for a PostgreSQL table—names, data types, nullability, defaults, and primary-key status—to inspect schema before writing queries.
Instructions
Return column metadata for a table: name, data type, nullable, default, and whether it is part of the primary key.
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_name": "<table_name>"
},
"name": "describe_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |