list_constraints
Retrieve all constraints on a PostgreSQL table, including primary key, unique, foreign key, check, and exclusion constraints, with their full definitions.
Instructions
All constraints on a table (primary key, unique, foreign key, check, exclusion) with their full definitions.
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": "list_constraints"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| schema | No | public |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |