Get Table Constraints
get_table_constraintsRetrieve primary keys, foreign keys, and unique constraints for a table. Uses the default schema if not specified.
Instructions
Get all constraints (primary keys, foreign keys, unique constraints) for a specific table. Uses the system's default schema if not provided.
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": "get_table_constraints"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | Table name to get constraints for | |
| schema | No | Schema (library) name containing the table. Uses the system's default schema if not provided. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| count | No | ||
| error | No | ||
| success | Yes |