list_repo_dependencies
List repositories that a given repo depends on, or that depend on it, using build system declarations. Use for impact analysis before breaking changes and cross-repo call tracing.
Instructions
Read-only cross-repository dependency graph lookup. Shows which repositories depend on each other via build system declarations (Maven, Gradle, Cargo, npm). Answers 'which repos does this repo depend on?' and 'which repos depend on this repo?'.
Usage: Use BEFORE cross-repo analysis to discover which other indexed repos are available for call tracing. Use reverse mode for impact analysis before breaking changes in shared libraries.
Behaviour & Return: Read-only graph traversal with no side effects. Returns a JSON array of repository names. Empty results mean no DEPENDS_ON relationships exist for that repo.
Parameter guidance: 'repo_name' is required and must match the name used during indexing. 'max_depth' defaults to 3 (1 = direct only). 'reverse' toggles between forward and reverse dependency lookup.
Supports all build systems indexed by knot: Maven, Gradle, Cargo, npm.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_depth | No | Maximum depth for transitive dependency traversal (default: 3). Use 1 for direct dependencies only. Higher values follow chains deeper. Must be between 1 and 10. | |
| reverse | No | If true, show repositories that depend ON this repo (reverse lookup). If false (default), show repositories this repo depends ON. Use reverse for impact analysis before breaking changes. | |
| repo_name | Yes | Repository name to show dependencies for. Must match the name used during indexing (e.g., 'my-java-repo', 'auth-service'). This is REQUIRED — there is no default. |