Get Table Dependencies
openl_get_table_dependenciesRetrieve table dependency graphs as adjacency lists for a whole project or a specific table, with filters for module, layer, direction, and depth, plus JSON or Markdown output.
Instructions
Get the table dependency graph as an adjacency list. Omit tableId for the whole project graph, optionally restricted by module and layer (executable, datatype, or all); provide tableId for its dependency/dependent neighborhood with optional direction and depth. Executable nodes include signatures, return types, and dimension properties; datatype nodes include inheritance and declared field references; vocabulary nodes include their value type, total value count, and a bounded first/last values preview. Dispatchers represent versioned executable tables, self-loops represent recursion or self-reference, and cycles are derived from dependency edges. JSON preserves the graph nodes directly. Markdown renders executable calls as a Mermaid flowchart and the data model, including declared fields, vocabulary value previews, and reference cardinalities, as a Mermaid ER diagram; vocabulary headers use Name, preview rows leave the redundant type column visually empty, and a + N more marker identifies a truncated middle. Inheritance is shown separately when present. Detailed Markdown adds per-node metadata, while concise Markdown stays textual.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | When tableId is provided, maximum traversal depth from that table. | |
| layer | No | When tableId is omitted, return executable tables, datatype/vocabulary nodes, or both (backend default all). | |
| module | No | When tableId is omitted, limit the project graph to this module. Discover names with openl_list_project_modules(). | |
| tableId | No | Optional table whose dependency neighborhood to return. Omit to return the whole project (or module) graph. | |
| direction | No | When tableId is provided, relations to traverse (backend default BOTH). | |
| projectId | Yes | Project ID returned by backend. Use the exact 'projectId' value from openl_list_projects() response without modification or reformatting. | |
| response_format | No | Response format: 'json' for structured, round-trippable data (default), 'markdown' for human-readable output, 'markdown_concise' for a brief summary (1-2 paragraphs), or 'markdown_detailed' for full details with context | json |