Skip to main content
Glama
asd369932

file-manager-mcp

by asd369932

read_file

Reads text file content within a locked root directory, supporting offset/limit pagination while capping size and detecting binary files to avoid sandbox escapes.

Instructions

读取文本文件内容(上限 1MB / 2000 行,自动识别二进制)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
limitNo
offsetNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it usefully discloses a 1MB/2000-line ceiling and automatic binary detection. However, it is silent on what happens when the cap is hit (truncation vs. error), how binary files are surfaced, and whether any permission constraints apply.

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?

A single sentence that front-loads the core action and appends constraints with no filler. 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.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return-value explanation is not required, but with three undocumented parameters and zero annotation coverage the definition leaves the offset/limit paging behavior and truncation semantics entirely to guesswork.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry parameter meaning, but it never mentions limit or offset, whose non-obvious defaults (limit=0, offset=1) beg for explanation. The stated 1MB/2000-line cap is a hard constraint, not an explanation of how those parameters control paging.

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?

States a specific verb and resource (读取文本文件内容) and adds scope details (1MB/2000 line cap, binary auto-detection). It is clearly distinct from write_file by the read/write verb, but it never contrasts itself with search or list_dir, which also surface file content.

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 implies the tool reads a file but gives no guidance on when to prefer it over search (content lookup) or list_dir (enumeration). There are no stated prerequisites, no exclusions, and no named alternatives.

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

Deploy Server

Other Tools