Skip to main content
Glama
ellmos-filecommander-mcp

ellmos-filecommander-mcp

Read File

fc_read_file
Read-onlyIdempotent

Read a file’s text content by path, with optional encoding and line limits, and return binary files as Base64 for safe inspection.

Instructions

Reads the content of a file.

Args:

  • path (string): Full path to the file

  • encoding (string, optional): Character encoding (default: utf-8)

  • max_lines (number, optional): Maximum number of lines (0 = all)

Returns:

  • File content as text

  • For binary files: Base64-encoded content

Examples:

  • path: "C:\Users\User\test.txt"

  • path: "/home/user/config.json"

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": {
      "path": "<path>"
    },
    "name": "fc_read_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesFull path to the file
encodingNoCharacter encodingutf-8
max_linesNoMax lines (0 = all)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.11.5
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / max_lines / maximum
      Added value: +9007199254740991
  2. Addedv1.9.3
  3. Removedv1.9.3
  4. First observedv1.7.8

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, so safety is covered. The description adds genuinely useful behavior beyond that: it discloses the return shape (plain text vs. Base64 for binary files), which matters because there is no output schema. It omits error behavior for missing files and how truncation via max_lines affects output.

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?

The purpose sentence is front-loaded and short, and the platform-specific path examples are genuinely helpful for a filesystem tool. The Args block duplicates the schema field-for-field, which is some wasted space, but the overall length stays reasonable.

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 simple three-parameter read tool with full annotation coverage, the definition is workable, and the return-value note compensates for the absent output schema. It still leaves gaps an agent would care about: what happens on a missing file, how binary detection is triggered, and how large-file or max_lines truncation is signaled.

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 the schema already documents all three parameters including the '0 = all' semantics and the utf-8 default. The description's Args block largely restates the schema verbatim, adding no new semantics; baseline 3 is appropriate.

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 ('Reads the content of a file'), which is unambiguous on its own. However, it never distinguishes itself from close siblings such as fc_read_multiple_files, fc_preview_file, or fc_file_info, so an agent must infer which read tool applies.

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?

There is no when-to-use or when-not-to-use guidance and no mention of alternatives, despite the sibling list containing several overlapping read tools. The examples only show path formats, not the conditions that select this tool over fc_read_multiple_files or fc_preview_file.

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