Skip to main content
Glama
freefish1218

mcp-local-reader

by freefish1218

convert_local_file

Converts local PDF, Office, and OpenDocument files into Markdown files saved to your filesystem. Makes documents AI-ready for use with Claude and other MCP clients.

Instructions

将本地文件转换为markdown文件并保存到文件系统

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)。不支持图片
overwriteNo是否覆盖已存在的文件
output_pathNo输出markdown文件路径,默认为原文件名+.md

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.4

TDQS

A3.5/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 transparency burden. It does disclose the key side effect (saving to the filesystem), but it does not mention overwrite behavior, size limits, or unsupported inputs; these are left to the schema rather than stated at tool level.

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 front-loaded sentence with no filler: 'convert local file to markdown and save to filesystem' says what the tool does without waste.

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 tool that writes files, the description is minimally complete: it names the conversion and the save side effect, and the schema covers formats, limits, output path, and overwrite. However, it does not address sibling selection or any return/failure behavior, and there is no output schema to fill that gap.

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%, and the schema provides detailed parameter descriptions for file_path, max_size, overwrite, and output_path. The tool description adds no parameter-level meaning beyond that, so the baseline score of 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 clearly states the verb 'convert', the resource ('local file'), and the outcome ('markdown file saved to filesystem'). It is not a tautology, and the action is distinct from the sibling read_local_file, though it does not explicitly call out that sibling.

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?

There is no explicit guidance on when to choose this tool over read_local_file or what conditions make conversion appropriate. The intended use is implied by the verb 'convert', but no alternatives or exclusions are named.

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