Skip to main content
Glama

doc_parse

Convert PDF, DOCX, PPTX, XLSX, and images into Markdown or JSON using MinerU or PaddleOCR, with options for tables, formulas, and images.

Instructions

解析文档(PDF/DOCX/PPTX/XLSX/图片)为 Markdown/JSON。使用 MinerU 或 PaddleOCR。

Args: file_path: 文档文件路径 pages: 页码范围(如 "1-20"),默认全部 engine: 解析引擎 (auto|mineru|paddleocr) need_tables: 是否需要表格 need_formulas: 是否需要公式 need_images: 是否需要图片提取 output_format: 输出格式 (markdown|json|markdown+json)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pagesNo
engineNoauto
file_pathYes
need_imagesNo
need_tablesNo
need_formulasNo
output_formatNomarkdown+json

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description bears full responsibility for behavioral disclosure. It mentions the use of MinerU or PaddleOCR engines and output formats, but does not state whether the operation is read-only, if network access is required, or any error-handling behavior.

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 concise and well-structured: a single purpose sentence followed by a parameter list. Every sentence earns its place, and the primary function is front-loaded.

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 description covers all parameters, supported input formats, engine options, and output formats. It lacks details on prerequisites or edge cases, but since an output schema exists, return-value details are not needed here.

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

Parameters5/5

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

All 7 parameters are described with meanings and examples (e.g., pages '1-20', engine choices, boolean flags). This adds substantial value beyond the input schema, which only lists titles and defaults without descriptions.

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 opening line clearly states the tool's function: 'Parse documents (PDF/DOCX/PPTX/XLSX/images) into Markdown/JSON'. This specifies a verb, resource types, and output formats, making it distinct from sibling tools like audio_transcribe or video_index.

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 lists supported file formats (PDF/DOCX/PPTX/XLSX/images), giving clear context on when to use this tool. It does not explicitly mention alternatives or exclusions, but sibling tools cover other media types, making the intended use evident.

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/rorojiao/local-mmcp'

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