list_constraints
Inspect a table's primary key, foreign key, unique, and check constraints, including columns and references, to understand its structure and relationships.
Instructions
List constraints on a table (primary key, foreign key, unique, check) with their columns and references.
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 | Table name. | |
| schema | No | Schema (owner) of the object. Optional — defaults to the server's current schema; omit rather than guess. |