pg_constraint_list
List primary key, foreign key, unique, and check constraints for a specified PostgreSQL table to inspect its schema and integrity rules.
Instructions
List constraints (primary key, foreign key, unique, check) for a 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": {
"target": "<target>",
"table": "<table>"
},
"name": "pg_constraint_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | Table name | |
| schema | No | Schema name (default: 'public') | |
| target | Yes | Target name from ~/.dbx/targets/ |