Skip to main content
Glama
FullContextInput MCP

FullContextInput MCP

by lukehemmin

read_directory_structure

Reads directory structure and file metadata without file contents to pre-analyze codebases and prevent context overflow; supports depth limits and file extension filters.

Instructions

디렉토리 구조와 파일 메타데이터만 제공합니다 (파일 내용 제외). 컨텍스트 초과 방지를 위한 사전 분석용.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "directory_path": "<directory_path>"
    },
    "name": "read_directory_structure"
  }
}

Input Schema

NameRequiredDescriptionDefault
max_depthNo최대 탐색 깊이 (기본값: 10)
directory_pathYes분석할 디렉토리 경로 (절대경로 또는 상대경로)
include_extensionsNo포함할 파일 확장자 목록 (기본값: 일반적인 코드 파일)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.4

TDQS

A3.5/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 usefully discloses the key boundary that file content is excluded and that the tool exists to avoid context overflow, but it says nothing about read-only guarantees, output size, permissions, or how metadata is shaped.

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?

Two short sentences with no filler, and the content-exclusion constraint is front-loaded ahead of the purpose. Slightly more structure (e.g., naming what metadata is returned) could improve it without adding bulk.

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?

For a simple read-only listing tool with three fully documented parameters and no output schema, the description covers what is and is not returned and why one would call it. Completeness is adequate for the complexity, with only return-shape details left implicit.

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 directory_path, max_depth, and include_extensions are all documented in the schema itself. The description adds no parameter-level meaning such as default extension sets or depth trade-offs, so baseline 3 applies.

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 names a specific resource (directory structure and file metadata) and explicitly scopes out file content, which separates it from siblings like read_file_content and read_file_chunk. It stops short of naming any sibling directly, so it is clear but not fully differentiated in-text.

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?

It gives a usage context ('preliminary analysis to prevent context overflow'), which implies it should be called before reading file contents. However, there is no explicit when-not guidance or named alternative for the case where the agent actually needs file contents, leaving the routing partly to inference.

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