Skip to main content
Glama

analyze_project_structure

Analyzes project directory trees, generating a comprehensive structure overview with file metadata. Supports custom inclusion/exclusion patterns and summary file generation.

Instructions

Analyze project structure and generate a comprehensive overview

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_pathNoThe path to the project directory to analyze. Defaults to current directory..
include_patternsNoGlob patterns for files to include in analysis. Defaults to all files.
exclude_patternsNoGlob patterns for files/directories to exclude from analysis. Includes .claudeignore patterns if present.
max_depthNoMaximum directory depth to traverse during analysis. Prevents infinite recursion.
generate_summaryNoWhether to generate a .treesummary file with the project structure overview.
Behavior2/5

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

With no annotations, the description should disclose behavioral traits. It only states the high-level purpose without mentioning caching, .claudeignore respect, or output format. The schema description adds some context, but the tool's description itself is insufficient.

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

Conciseness3/5

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

The description is extremely concise at one sentence. While it is not wasteful, it may be too brief for a tool with multiple parameters and behavioral traits, risking under-specification.

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

Completeness2/5

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

Given the complexity (5 parameters, no annotations, no output schema), the description is incomplete. It does not explain the output, side effects (caching, file creation), or how it differs from sibling tools like 'generate_project_summary'.

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?

Schema coverage is 100%, so the baseline is 3. The description does not add parameter semantics beyond what the input schema already provides, resulting in no extra value.

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

Purpose4/5

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

The description clearly states the tool analyzes project structure and generates a comprehensive overview, matching the name. However, it does not differentiate from siblings like 'generate_project_summary' or 'get_project_overview', which could cause confusion.

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 is provided on when to use this tool versus alternatives. The description lacks any when-to-use, when-not-to-use, or contextual best practices.

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/ZachHandley/ZMCPTools'

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