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.
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. |