Skip to main content
Glama

scan_folder_for_intent

Detect a project's purpose by scanning its folder contents—either by analyzing file names or reading key documentation files for accurate intent identification.

Instructions

Detect a project's purpose from its folder contents.

Args:
    folder_path: Absolute path to the project folder.
    scan_type: One of:
        "names"   — file/folder names only (fast, no content read)
        "content" — reads README, CLAUDE.md, PLANNING.md (more accurate)
        "none"    — skip scan, return empty (user will describe manually)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
folder_pathYes
scan_typeNonames

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description fully covers behavior: it reads file/folder names or specific files (README, CLAUDE.md, PLANNING.md), no destructive actions, and returns empty for scan_type=none. It's transparent about read-only nature, though lacks detail on error handling.

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?

Extremely concise: one sentence for purpose, then clear parameter list. No unnecessary words, each sentence adds value. Front-loaded with main purpose.

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

Completeness4/5

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

Given no annotations and simple tool with 2 params, the description covers input semantics well. It doesn't mention return format but output schema exists. It could mention error behavior but overall sufficient for its complexity.

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

Parameters4/5

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

With 0% schema coverage, the description compensates by explaining folder_path as absolute path and scan_type with three options and their effects. Both parameters are meaningfully described beyond the 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 clearly states the tool detects a project's purpose from folder contents, using strong verb 'Detect' and specific resource. It distinguishes itself from sibling tool 'scan_project_folder' by focusing on intent detection.

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

Usage Guidelines4/5

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

The description explains the three scan_type options with trade-offs (fast vs accurate), guiding when to use each. However, it doesn't explicitly contrast with alternative tools like scan_project_folder or specify when not to use this tool.

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/SVerITG/Metis'

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