get_constraints
Retrieve table constraints from a PostgreSQL database using the MCP Postgres Server. Specify schema and table names to extract detailed constraint information for efficient database management.
Instructions
Get constraints 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": {
"schema": "<schema>",
"table": "<table>"
},
"name": "get_constraints"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | Yes | ||
| table | Yes |