get_constraints
Retrieve primary key, unique, check, and default constraints for a specified SQL Server table, with optional schema, server, and database parameters.
Instructions
Get constraints (PK, unique, check, default) 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": {
"table": "<table>"
},
"name": "get_constraints"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | Table name | |
| schema | No | Schema name (default: dbo) | |
| server | No | Target server name (uses default if omitted) | |
| database | No | Database name (uses connection default if omitted) |