Skip to main content
Glama
ofershap

mcp-server-anydoc

by ofershap

convert_document

Need Markdown from a local office file? Convert PDF, Word, PowerPoint, Excel, and more to GitHub-Flavored Markdown on your device—no uploads or API keys.

Instructions

Convert a local office document (PDF, Word, PowerPoint, Excel, OpenDocument, RTF, EPUB, CSV) to GitHub-Flavored Markdown on the user's machine. No API key. File never leaves the device. Prefer this over uploading docs to cloud parsers.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesAbsolute or relative path to the document on disk
formatNoOptional format hint (e.g. "csv", "docx") when detection cannot work
output_pathNoOptional path to write the .md file. Use for large documents instead of returning full markdown inline.
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It clearly states 'No API key' and 'File never leaves the device', which are important operational characteristics. It doesn't mention edge cases or side effects, but the included privacy guarantees are substantive and beyond typical.

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?

The description is four short, purposeful sentences. Each sentence adds information—action, formats, privacy, and usage preference—without any fluff or redundancy. It is front-loaded with the primary action and immediately followed by key differentiators.

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?

The tool has three parameters and no output schema, but the schema property for output_path explains the inline-vs-file output behavior. The description complements this with supported formats and privacy context. It is sufficiently complete for an agent to select and invoke the tool safely, though it could explicitly mention the return type if no output_path is given.

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?

Although the schema already describes each parameter clearly (100% coverage), the description adds value by enumerating the exact supported document formats (PDF, Word, PowerPoint, Excel, OpenDocument, RTF, EPUB, CSV), which clarifies what the optional 'format' parameter expects and when format hints might be needed.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses the specific verb 'Convert' with a clear resource ('local office document') and target format ('GitHub-Flavored Markdown'). It lists supported input types, and the stipulation to prefer it over cloud parsers distinguishes it from upload-based alternatives.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives explicit usage context: it's for local, private conversions without an API key, and recommends it over cloud-based document parsers. However, it does not directly contrast with sibling tools like convert_base64 or list_formats, leaving some ambiguity for niche use cases.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ofershap/mcp-server-anydoc'

If you have feedback or need assistance with the MCP directory API, please join our Discord server