tableContext
tableContextExplore the relationship neighborhood of a known table: retrieve nearby table metadata with declared foreign keys and observed join edges, helping identify relevant joins.
Instructions
Explore the relationship neighborhood of one known table: compact root/nearby table metadata plus declared FK and optional observed join edges. Use when nearby joins are needed; for only the table's own fields or structure, use describeTable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | FK depth (default 1). | |
| table | Yes | ||
| schema | No | ||
| connection | Yes | Database to run against. Call listConnections for valid names; do not guess. | |
| includeStats | No | Include row/size/activity stats (default false). | |
| includeIncoming | No | Include child references (default true). | |
| includeObserved | No | Include declared/observed/semantic usage evidence (default: catalog enabled). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | Yes | Relationship expansion depth from the root object. | |
| tables | No | Tables included in this context, graph, query inspection, or usage record. | |
| rootTable | No | Root table requested for table context. | |
| rootSchema | No | Schema of the root table requested for table context. | |
| includeStats | Yes | True when live table statistics were requested for context tables. | |
| relationships | No | Relationship edges relevant to the context, graph, or observed-relationships result. | |
| includeIncoming | Yes | True when tables that reference the root table were included. | |
| includeObserved | Yes | True when usage-catalog observed joins were included as relationship evidence. |