Skip to main content
Glama
leanzero-srl

MCP Document Processor

Official
by leanzero-srl

read-doc

Read and analyze PDF, DOCX, Excel, and PowerPoint files. Choose summary, in-depth, or focused mode to extract text, structure, and metadata from local or remote sources.

Instructions

Read and analyze PDF, DOCX, Excel, or PowerPoint (.pptx) files. Modes: 'summary' (overview with preview), 'indepth' (full text, structure, metadata), 'focused' (query-based search). For a .pptx it returns a per-slide transcript (titles, bullets, speaker notes) and the slide count. Source: either local filePath OR a remote https url whose response is {data:base64, filename, mimeType, size} JSON guarded by authHeader (used for one-shot capabilities like CogniRunner attachment fetches). Always read before editing; use 'indepth' before edit-doc.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoHTTPS URL whose response is {data:base64, filename, mimeType, size} JSON. Use this OR filePath.
modeNoRead mode (default: summary)
contextNoContext from previous questions. Only used with mode 'focused'.
filePathNoLocal file path. Use this OR url+authHeader.
filenameNoOptional filename hint used for the temp-file extension when the response omits one.
userQueryNoQuery for focused analysis. Only used with mode 'focused'.
authHeaderNoAuthorization header value (e.g. 'Bearer abc123'). Required when url is set.
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses modes, pptx output format, source requirements (authHeader for URL), and suggests using indepth before editing. It does not mention side effects, but as a read tool, none are expected.

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?

The description is a single dense paragraph that front-loads the main purpose, then details modes, pptx behavior, sources, and usage advice. It is concise but could benefit from slight structuring (e.g., bullets) for clarity. Still, every sentence earns its place.

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?

With 7 parameters and no output schema, the description adequately covers modes, sources, and usage hints. It does not describe return values, but that is acceptable given no output schema. The advice 'read before editing' adds useful context for workflow.

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?

Schema coverage is 100%, but the description adds significant context beyond schema: it explains modes (summary, indepth, focused) with examples, describes the remote source structure, clarifies that context and userQuery are only for focused mode, and notes that url requires authHeader. This is high value.

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 clearly states it reads and analyzes PDF, DOCX, Excel, or PowerPoint files, lists three modes, specifies behavior for pptx, and mentions two source types. It also differentiates from sibling edit-doc by advising to use 'indepth' before editing.

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 provides clear context for when to use each mode and hints at alternatives (use 'indepth' before edit-doc). It does not explicitly exclude other siblings, but the sibling list is dominated by creation tools, making this tool's purpose distinct.

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/leanzero-srl/leanzero-mcp-doc-processor'

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