inspect_relationships
Discover foreign-key relationships for a database table, including inbound and outbound references with column mappings and referential actions. Solve the problem of understanding table dependencies and constraints.
Instructions
Describes inbound and outbound foreign-key relationships for a given table, including column mappings and referential actions.
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": {
"tableName": "<tableName>"
},
"name": "inspect_relationships"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tableName | Yes | Target table name (without schema). | |
| schemaName | No | Schema name (defaults to 'dbo'). | |
| includeOutbound | No | Include relationships where the table references other tables (default true). | |
| includeInbound | No | Include relationships where other tables reference this table (default true). | |
| environment | No | Optional environment name to target. |