Codicil.MCP.Tools.ListModuleDependents (Codicil v0.7.1)

View Source

List all modules that depend on a given module (reverse dependency lookup).

Use this tool when:

  • Understanding the impact of changing a module
  • Planning deprecation of a module or API
  • Finding all consumers of a shared utility module
  • Assessing risk before refactoring

Examples:

  • Find all modules that use a shared helper before modifying it
  • Identify consumers of a library module before making breaking changes
  • Understand how widely used a module is in the codebase

Returns: List of modules that depend on the target module, with dependency types.

Summary

Functions

Find all modules that depend on the specified module.

Functions

call(args)

Find all modules that depend on the specified module.

Parameters

  • moduleName - Module name (e.g., "MyModule" or ":gen_server")
  • type - Optional filter: "compiler" for compile-time or "runtime" for runtime dependents

Returns

  • {:ok, text} with formatted list of dependents
  • {:error, reason} if module not found