Skip to main content
Glama

detect_circular_dependencies

Analyze import graphs to identify circular dependencies that cause initialization issues and maintenance problems in codebases.

Instructions

Analyze the import graph to detect circular dependencies between files. Circular dependencies can cause initialization issues, tight coupling, and maintenance problems. Returns all detected cycles sorted by length (shorter cycles are often more problematic).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scopeNoOptional path prefix to limit analysis (e.g., 'src/features', 'libs/shared')

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/PatrickSys/codebase-context'

If you have feedback or need assistance with the MCP directory API, please join our Discord server