pg_describe_table
Inspect a PostgreSQL table to return its columns, data types, constraints, and indexes using a database label and optional schema.
Instructions
Describe columns, types, constraints, and indexes of a PostgreSQL table
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": {
"database": "<database>",
"table": "<table>"
},
"name": "pg_describe_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | Table name | |
| schema | No | Schema name (default: public) | public |
| database | Yes | Database label from config |