Skip to main content
Glama

count_files

Analyze directory structures to generate markdown trees with file and folder counts for codebase understanding, issue identification, and technical debt assessment.

Instructions

Analyze directory structure and generate markdown directory tree with file and folder counts

WORKFLOW: Perfect for understanding complex code, identifying issues, and technical debt assessment TIP: Use Desktop Commander to read files, then pass content here for analysis SAVES: Claude context for strategic decisions

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
analysisDepthNoLevel of analysis detaildetailed
analysisTypeNoType of analysis to performcomprehensive
codeNoThe code to analyze (for single-file analysis)
filePathNoPath to single file to analyze
filesNoArray of specific file paths (for multi-file analysis)
languageNoProgramming languagejavascript
maxDepthNoMaximum directory depth for discovery (1-10)
projectPathNoPath to directory root to analyze
Behavior2/5

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

No annotations are provided, so the description carries full burden. It mentions generating markdown output and saving Claude context, but lacks critical behavioral details: whether this is a read-only or mutating operation, what permissions are needed, how large projects are handled, error conditions, or performance characteristics. For a tool with 8 parameters and no annotations, this is insufficient disclosure.

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

Conciseness2/5

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

The description is structured but not front-loaded efficiently. The core purpose is stated first, but the 'WORKFLOW,' 'TIP,' and 'SAVES' sections contain marketing-like language that doesn't add essential operational information. Sentences like 'Perfect for understanding complex code' and 'SAVES: Claude context for strategic decisions' don't earn their place in a tool description.

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 tool's complexity (8 parameters, no annotations, no output schema), the description is incomplete. It doesn't explain what the output looks like (beyond 'markdown directory tree'), doesn't address error handling or constraints, and provides minimal behavioral context. For a tool that appears to perform structural analysis, this leaves significant gaps for an AI agent.

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 description coverage is 100%, so the schema already documents all 8 parameters thoroughly. The description doesn't add any parameter-specific information beyond what's in the schema (e.g., it doesn't explain relationships between parameters like 'projectPath' vs 'filePath' vs 'files'). Baseline 3 is appropriate when schema does the heavy lifting.

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's purpose: 'Analyze directory structure and generate markdown directory tree with file and folder counts.' This is a specific verb+resource combination (analyze structure, generate tree with counts). However, it doesn't explicitly differentiate from sibling tools like 'analyze_project_structure' or 'analyze_single_file,' which appear related.

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

Usage Guidelines3/5

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

The description provides some usage context through 'WORKFLOW' and 'TIP' sections, suggesting it's for understanding complex code and technical debt, and recommending using Desktop Commander first. However, it doesn't explicitly state when to use this tool versus alternatives like 'analyze_project_structure' or 'analyze_single_file,' leaving usage somewhat implied rather than clearly defined.

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/houtini-ai/houtini-lm'

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