List All Constraints
list_constraintsList all constraints across database tables, including check, unique, foreign key, primary key, and default constraints. Filter by schema or constraint type for targeted analysis.
Instructions
List all constraints (check, unique, foreign key, etc.) across tables in the database
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_constraints"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | No | Schema name (default: dbo) | |
| connectionName | No | Named connection to use (e.g., 'production', 'staging') | |
| constraintType | No | Filter by constraint type (default: ALL) |