Skip to main content
Glama
fclwtt

anydoc-mcp

by fclwtt

convert_document_to_markdown

Convert doc, docx, ppt, pptx, xls, xlsx, PDF, ODT, ODS, ODP, RTF, EPUB, and CSV files into clean GitHub-Flavored Markdown locally—no API key, no network access.

Instructions

用 anydoc 将文档转换为干净的 GitHub-Flavored Markdown。支持 doc/docx/ppt/pptx/xls/xlsx/pdf(文本型)/odt/ods/odp/rtf/epub/csv。纯本地运行,无需 API key,不联网。注意:扫描型/图片型 PDF 不支持(anydoc 无 OCR);不渲染文档内嵌图片。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filenameYes原始文件名(含扩展名),用于格式识别,例如 report.docx
content_base64Yes文件内容的 base64 编码字符串

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and delivers useful traits: pure local execution, no API key, no network calls, no OCR, and no rendering of embedded images. These are meaningful behavioral facts an agent needs before invoking. It does not describe error behavior or output shape in detail, keeping it short of a 5.

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?

Front-loaded with the core action, then format support, then operating constraints and caveats, all in a compact block. The format enumeration is long but earns its place by defining accepted inputs.

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?

No output schema exists, but the description implies the return format (GFM) and flags key limitations. Combined with 100% schema coverage and full required-parameter documentation, an agent has enough to call it correctly; only error/edge-case handling is left unstated.

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 both parameters (filename for format detection, base64 content). The description adds no per-parameter detail beyond what the schema provides, so the baseline 3 applies.

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?

States a specific verb+resource ('convert documents to clean GitHub-Flavored Markdown') and enumerates every supported input format, so an agent immediately knows the operation and its scope. There are no siblings to distinguish from, and the naming of the underlying engine (anydoc) adds specificity.

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 clear negative guidance ('scanned/image PDFs not supported', 'no OCR'), which functions as a when-not-to-use rule and steers the agent away from unsupported inputs. It lacks explicit routing to alternatives, but no sibling tools exist, so the context coverage is strong.

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