Skip to main content
Glama
FullContextInput MCP

FullContextInput MCP

by lukehemmin

read_file_smart

Reads files by automatically returning full contents for short files or line chunks for longer ones, so you can inspect large codebases without manual pagination.

Instructions

파일 크기에 따라 지능적으로 읽기 방식을 결정합니다. 200줄 미만은 전체, 200줄 이상은 자동으로 청크 제공.

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": {
      "file_path": "<file_path>"
    },
    "name": "read_file_smart"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_pathYes읽을 파일의 경로
chunk_numberNo큰 파일의 경우 읽을 청크 번호 (기본값: 0)
lines_per_chunkNo청크당 라인 수 (기본값: 200줄)

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 at all, the description must carry the full behavioral burden, and it partly does: it discloses the 200-line threshold and that large files are served as chunks rather than whole. It does not state that the operation is a safe read, what the response looks like, what happens past the last chunk, or how errors (missing file, encoding) surface — real gaps for a tool with zero annotation coverage.

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?

Two short sentences, zero filler, with the behavior rule front-loaded before the conditional detail. Nothing could be removed without losing information.

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?

For a 3-parameter read tool with no output schema and no annotations, the core selection logic is explained but the operational envelope is not: no return shape, no chunk-sequence guidance, no error behavior, and no routing against the several sibling read tools. Adequate to invoke once, thin for invoking confidently.

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 all three parameters are already documented, and the baseline is 3. The description adds modest context by tying the 200-line chunk size to the lines_per_chunk default and explaining that chunk_number exists for large files, but it adds no format, syntax, or boundary details beyond what the schema already provides.

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 concrete behavior: it reads a file and decides the read strategy by line count, switching between whole-file and chunked delivery at 200 lines. That is a specific verb+resource+policy statement, well beyond a tautology. It loses a point because it never distinguishes itself from the obvious siblings (read_file_chunk, read_file_content, read_file_lines), so an agent seeing both this and read_file_chunk gets no help choosing.

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 only implied: the 'intelligent' auto-selection suggests you should call this when you don't know whether the file is large. There is no explicit when-to-use statement, no when-not-to-use, and no named alternative such as read_file_chunk or read_file_content for the case where the caller already knows the size or wants a specific range.

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