Skip to main content
Glama
codedev-mcp

codedev-mcp

by Kranthithota

read_files

Read-onlyIdempotent

Load one or multiple project files by passing a single path or path array; use line ranges for one file and truncation controls for batch reads.

Instructions

Read one or more files. Pass a single path or array of paths. Supports line ranges for single files and truncation for batch reads.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "read_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoSingle file path relative to project root
pathsNoMultiple file paths for batch read
end_lineNoEnd line for single file (inclusive)
start_lineNoStart line for single file (1-indexed)
max_lines_per_fileNoTruncate each file in batch mode (default: 200)

Output Schema

NameRequiredDescriptionDefault
filesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.2.5

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful mode behavior: line ranges are single-file only and batch reads are truncated, which is beyond the annotations. It stops short of saying what truncation does to the response or how the default limit is surfaced.

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?

Three short sentences, front-loaded with the core action before the mode details. Slight redundancy in 'Pass a single path or array of paths,' which the schema already conveys, keeps it just below maximum.

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?

With an output schema present, the description need not explain return values, and it covers both operating modes and their respective parameters. The main residual gap is that with zero required parameters, it does not explicitly state that at least one of path or paths must be supplied, or what happens if both are.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds a cross-parameter constraint the schema does not encode: start_line/end_line only apply to single-file mode, and max_lines_per_file only to batch mode. It also clarifies that path and paths are alternatives, which matters because the schema marks neither as required.

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 specific verb and resource ('Read one or more files') and immediately clarifies the two input modes. It is clearly a raw file-read tool, implicitly distinct from analysis-oriented siblings like analyze_file, though it never names an alternative to sharpen that boundary.

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 implied usage guidance by explaining that line ranges apply to single-file reads and truncation applies to batch reads, which steers mode selection. However, it never says when to prefer this over a sibling such as analyze_file, nor does it state exclusions or prerequisites.

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