Skip to main content
Glama
FullContextInput MCP

FullContextInput MCP

by lukehemmin

read_file_lines

Reads only a specified line range from a file, so AI coding tools can inspect targeted sections without loading the entire file.

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

Input Schema

NameRequiredDescriptionDefault
end_lineNo끝 라인 번호 (비어있으면 파일 끝까지)
file_pathYes읽을 파일의 경로
max_linesNo최대 라인 수 (기본값: 100)
start_lineNo시작 라인 번호 (1부터 시작)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.4

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden, yet it says nothing beyond the fact of reading. It does not state what happens when the range exceeds file length, how lines are counted or encoded, or whether the call is side-effect free.

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?

One short sentence with no filler and the scope constraint front-loaded. It is efficient rather than padded, though the brevity is partly under-specification rather than deliberate economy.

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 tool with no annotations and no output schema, the description should at least sketch the return shape (raw lines? numbered?) and edge-case behavior, and it does neither. The schema covers inputs well, but the output and failure behavior are entirely undocumented.

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 four parameters (file_path, start_line, end_line, max_lines) are already documented in the schema with defaults and semantics. The description adds no meaning beyond that, which is the baseline 3 case.

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 single sentence names a specific verb (read) and resource (file) and narrows scope to a line range, which lets an agent distinguish it from whole-file readers like read_file_content. It does not name any sibling explicitly, so it stops short of a 5.

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?

'Only the specified line range' implies the usage context of partial reads, but there is no explicit statement of when to prefer this over read_file_chunk or read_file_content, and no exclusions or prerequisites.

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