describe_table
Analyze PostgreSQL table structure to view columns, data types, primary keys, and foreign keys for database schema understanding.
Instructions
Describe the structure of a table including columns, types, and constraints.
Args:
table_name: Name of the table to describe
schema: Schema name (default: public)
Returns:
Table structure with columns, primary keys, and foreign keys
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 | ||
| schema | No | public |