Skip to main content
Glama

project_scan

Scan a local project directory, capture its folder tree to a chosen depth, and save a JSON summary for later reuse.

Instructions

Scan a local project directory and record its structure for later reuse.

Args: path: Absolute or relative path to the project directory. depth: Maximum directory nesting included in the tree (default 4). save: Persist the summary to local storage (default True).

Returns: A JSON summary of the project.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
saveNo
depthNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It discloses that the tool scans a local directory and can persist a summary to local storage, which is helpful, but it does not clarify permissions, whether the project itself is modified, error behavior, or filesystem limits.

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

Conciseness4/5

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

The description is front-loaded with the purpose and then structures parameter details cleanly. The Returns line is somewhat redundant because an output schema exists, but the overall size is appropriate and easy to parse.

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 core purpose and all parameters, and an output schema exists so return values need not be detailed. However, with no annotations, it leaves behavioral gaps around permissions, side effects on the filesystem, and usage boundaries, making it only minimally complete.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate, and it documents all three parameters: path accepts absolute or relative paths, depth controls directory nesting with default 4, and save persists the summary with default True. This adds clear meaning beyond the bare schema.

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 states a specific verb and resource: scan a local project directory and record its structure. This is clearly distinct from all sibling tools, which focus on assistants, tasks, memory, and blackbox operations.

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?

Usage is implied by the purpose ('scan a local project directory and record its structure for later reuse'), but there is no explicit when-to-use guidance, no prerequisites, and no alternatives named. Given that no sibling tool overlaps with project scanning, implied usage is adequate but not rich.

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