Skip to main content
Glama
freefish1218

mcp-local-reader

by freefish1218

read_local_file

Read local PDF and Office documents, converting them into AI-optimized markdown for use in MCP clients like Claude Desktop and Claude Code.

Instructions

读取本地文件系统中的PDF、Office文档

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
max_sizeNo单个文件大小限制(MB),默认20MB
file_pathYes本地文件绝对路径,必须使用完整的绝对路径(如/Users/user/document.pdf)。支持格式:PDF、Office文档(doc/docx/xls/xlsx/ppt/pptx)、OpenDocument(odt/ods/odp)。不支持图片

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.4

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It conveys that the operation is read-only, but it does not disclose what the tool returns, how size limits are enforced, what happens on unsupported files, or any error/access behavior. This is thin for a tool with no annotation safety net.

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 description is a single efficient sentence that front-loads the core purpose. It earns its place, but it is slightly too sparse to fully compensate for the missing usage and behavior context.

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 two-parameter read tool, the description plus schema is close to minimally viable: the path format, supported formats, and size limit are present. However, with no output schema and no annotation, the absence of any statement about return type or behavior is a clear gap, though not a crippling one.

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 baseline is 3. The description adds no meaning about file_path or max_size beyond what the schema already documents, nor does it need to, since both parameters are well described in the schema.

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 ('读取'/'read'), a clear resource (local file system documents), and lists the supported families (PDF, Office). It is distinguishable from the sibling convert_local_file by the read-vs-convert contrast, though it does not explicitly name the sibling or call out the differentiation.

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?

No guidance is given for when to use this tool versus convert_local_file or any other alternative. The schema's format restrictions indirectly imply the tool's input scope, but the description itself provides no selection guidance, exclusions, or alternative routing.

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