Skip to main content
Glama

repomind_generate_diagram

Generate a Mermaid diagram of file dependencies to visualize project architecture, with optional grouping by parent directories.

Instructions

Generates a beautiful visual Mermaid diagram representing the dependency graph of the files. Can group files by their parent directories into subgraphs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scopePathsNoOptional absolute paths of files or directories to restrict the scope of the diagram. If omitted, maps the entire workspace.
diagramTypeNoThe type of diagram to generate. Currently supports 'mermaid'.mermaid
workspaceRootNoOptional absolute path of the workspace root to resolve imports. Defaults to finding it from scopePaths or process.cwd().
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries full burden but only states the core action of generating a diagram and optionally grouping by directories. It does not disclose whether the tool is read-only, any required permissions, or how output is returned.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences, front-loaded with the main purpose, and avoids redundancy. The word 'beautiful' is non-essential but does not significantly detract.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers the basic function and one key feature, but lacks clarity on return value format and the effect of optional parameters, though these are documented in the schema. Without annotations or output schema, it is minimally adequate but not comprehensive.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema already documents all three parameters with descriptions, so the description adds no additional meaning. The mention of grouping by directories is a feature detail, not tied to specific parameter usage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool generates a Mermaid diagram of the dependency graph, which is distinct from sibling tools that scan, get dependencies, or analyze impact. The verb 'Generates' and resource 'Mermaid diagram' are specific and actionable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool versus alternatives; it does not mention that get_dependencies should be used for raw data or impact_analysis for impact assessment. Usage is only implied by the description's purpose.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/deep095/RepoMind-MCP'

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