Skip to main content
Glama

generate_diagram

Create Mermaid diagrams for file trees in a codebase, visualizing directory structures, dependencies, and file importance. Customize layout, depth, and style for clear code architecture insights.

Instructions

Generate a Mermaid diagram for the current file tree

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
layoutNo
maxDepthNoMaximum depth for directory trees (1-10)
minImportanceNoOnly show files above this importance (0-10)
outputFileNoOptional output file name for the diagram
outputFormatNoOutput format (mmd or png)
showDependenciesNoWhether to show dependency relationships
styleYesDiagram style

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/admica/FileScopeMCP'

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