Skip to main content
Glama

parse_document

Parse documents into structured formats (markdown, JSON, text, HTML). Extract text, tables, charts, formulas, and code blocks from PDF, DOCX, PPTX, HTML, MD, XLSX, images.

Instructions

Parse a document (PDF, DOCX, PPTX, HTML, MD) into structured output using Docling.

Docling is IBM's document understanding library that extracts text, tables, charts, formulas, and code blocks from multi-format documents.

Args: file_path: Absolute or relative path to the document file. Supports: PDF, DOCX, PPTX, HTML, Markdown, XLSX, Images. output_format: Output format - 'markdown' (default), 'json', 'text', or 'html'. extract_tables: If True, extract and structure tables (default True). extract_images: If True, extract embedded images (default False).

Returns: Dict with parsed content, metadata, and optionally tables/images.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes
output_formatNomarkdown
extract_imagesNo
extract_tablesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

Describes output structure and extraction capabilities, but lacks details on file size limits, error handling, or performance implications. With no annotations, more behavioral context would be beneficial.

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?

Well-structured with clear sections (Args, Returns), but includes somewhat verbose marketing line about Docling. Could be slightly more concise.

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?

Given output schema exists, description sufficiently covers inputs and outputs for a multi-format parsing tool. Missing minor details like return structure specifics.

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?

Adds meaning beyond schema by describing file_path format, output_format options, and boolean flags with defaults. Covers all 4 parameters despite 0% schema description coverage.

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?

Clearly states the action ('Parse a document') and supported formats (PDF, DOCX, etc.), differentiating it from image-specific sibling tools.

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?

Implied usage for documents vs image tools, but no explicit guidance on when to use this tool versus alternatives like ocr_image.

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/Veedubin/Videre-MCP'

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