list_constraints
Retrieve constraint definitions (PK, FK, Unique, Check) for a specific table or all tables in the schema.
Instructions
List all constraints (PK, FK, Unique, Check) for a table or all tables
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) | |
| tableName | No | Optional table name to filter constraints |