Skip to main content
Glama
FullContextInput MCP

FullContextInput MCP

by lukehemmin

read_directory_context

Recursively reads code files from a directory to build full project context, with size, file, and depth limits that prevent context overflow.

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_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
max_depthNo최대 탐색 깊이 (기본값: 10)
max_filesNo최대 파일 수 (기본값: 50)
max_file_sizeNo최대 파일 크기 (bytes, 기본값: 50KB)
directory_pathYes읽을 디렉토리 경로 (절대경로 또는 상대경로)
max_total_sizeNo최대 총 컨텍스트 크기 (bytes, 기본값: 500KB)
include_extensionsNo포함할 파일 확장자 목록 (기본값: 일반적인 코드 파일)
prioritize_importantNo중요한 파일 우선 순위 (기본값: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.4

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description must carry the full behavioral burden. It mentions a 'context overflow prevention' feature but never explains what happens when limits are exceeded (truncation, error, or priority-based selection), even though the prioritize_important parameter hints that some selection logic exists. Read-only semantics and output shape are also unstated.

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, front-loaded with the core behavior. Nothing is padded or redundant, though the second sentence gestures at a feature without explaining it, which is wasted space rather than useful concision.

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?

For a seven-parameter tool with no annotations and no output schema, the description is thin. An agent cannot tell what the returned 'full context' looks like, how files are ordered, or how the size/depth/file limits affect the result when they are hit.

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 every one of the seven parameters is documented in the input schema with defaults and units. The description adds no further meaning about how those limits interact or what the defaults are tuned for, which is the baseline expectation when the schema is complete.

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 states a concrete verb and resource: recursively reading all code files in a directory to return full context. That is enough for an agent to understand the operation. It does not explicitly contrast itself with nearby siblings such as read_directory_structure or read_file_content, so the distinction is left implicit.

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?

The description gives no guidance on when to choose this tool instead of read_directory_structure, read_file_content, or read_file_smart. There is no statement of prerequisites, no exclusions, and no conditions under which another tool would be preferable.

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