Skip to main content
Glama
AllenComm
by AllenComm

docread

Extract text from PDF, DOCX, PPTX, XLSX, and other document files. Filter content by pages, slides, sheets, or sections using range parameters.

Instructions

Read and extract text from a document file (PDF, DOCX, PPTX, XLSX, ODT, ODS, ODP, RTF, EPUB). Returns sections formatted as '=== section_label ===\ntext'. Output auto-truncated at 40000 chars.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rangeNoFilter output to specific sections. Format depends on file type: - PDF: page numbers (e.g. '1-3', '1,3,5-7') - PPTX/ODP: slide numbers (e.g. '2-4') - EPUB: chapter numbers (e.g. '1-5') - XLSX/ODS: sheet name or 1-based index, with optional row range after colon (e.g. '1', 'Sheet1', '1:1-100', 'Revenue:50-200') - DOCX/ODT/RTF: line numbers (e.g. '1-50', '100-200')
filepathYesPath to the document file.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Discloses output section formatting and auto-truncation at 40000 chars. No annotations provided, so description carries burden. Missing details on error handling or performance, but key behaviors are covered.

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?

Two sentences, first lists formats efficiently, second explains output format and truncation. Slightly dense but every word adds value. No redundancy.

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 output schema present, return values need no extra description. Covers truncation and section formatting. Lacks info on file size limits or required permissions, but sufficient for typical use.

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?

Schema coverage is 100%, but description adds significant value for 'range' parameter by detailing format per file type (PDF, PPTX, etc.). 'filepath' is straightforward. Enhances schema meaningfully.

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 tool reads and extracts text from document files, listing multiple supported formats. Differentiates from sibling 'docgrep' which likely searches within documents.

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?

Implicitly clear this is for reading full text; sibling 'docgrep' suggests a search tool. Lacks explicit when-not-to-use but context provides sufficient differentiation.

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/AllenComm/mcp-docsearch'

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