List All Constraints
list_constraintsRetrieve all database constraints including check, unique, foreign key, and primary key constraints across tables to understand data integrity rules and relationships.
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 |
|---|---|---|---|
| connectionString | No | SQL Server connection string (uses default if not provided) | |
| connectionName | No | Named connection to use (e.g., 'production', 'staging') | |
| schema | No | Schema name (default: dbo) | |
| constraintType | No | Filter by constraint type (default: ALL) |