Skip to main content
Glama

read_document

Extract content from documents including Excel, Word, PowerPoint, PDF, and text files using raw or paginated reading modes with interactive UI support.

Instructions

Read document content (Excel, Word, PowerPoint, PDF, TXT, CSV, Markdown, JSON, YAML). Supports raw full read or paginated mode. Includes interactive UI for Excel and PDF.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYesAbsolute path to the document file
file_typeNoOverride file type detection (optional). Specify format explicitly instead of relying on extension
modeNoRead mode
pageNoPage number for paginated mode
page_sizeNoItems per page
sheet_nameNoSheet name for Excel files

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNo
pageNo
errorNo
sheetsNo
slidesNo
tablesNo
contentNo
headersNo
successNo
encodingNo
has_moreNo
page_sizeNo
paragraphsNo
sheet_nameNo
total_colsNo
total_rowsNo
total_linesNo
total_pagesNo
current_pageNo
total_slidesNo
total_tablesNo
total_paragraphsNo
total_page_groupsNo
current_page_groupNo
Behavior3/5

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

With no annotations provided, the description carries full burden. It discloses key behavioral traits: format support, read modes (raw/paginated), and interactive UI for specific formats. However, it doesn't mention performance characteristics, error handling, authentication requirements, or rate limits that would be important for a document reading tool.

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 efficiently structured in two sentences that each add value: first establishes core functionality with format enumeration, second adds mode and UI information. No redundant information, though it could be slightly more front-loaded with the most critical information.

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 the tool's complexity (6 parameters, multiple formats and modes) and the presence of an output schema, the description provides good foundational context. It covers what the tool does, supported formats, and key operational modes. The output schema existence means return values don't need explanation, making this reasonably complete for agent usage.

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 baseline is 3. The description adds some context about format support and modes that complements the schema, but doesn't provide additional parameter semantics beyond what's already documented in the schema descriptions. The description doesn't explain parameter interactions or provide usage examples.

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 the specific verb ('Read') and resource ('document content'), enumerates supported file formats, and distinguishes from sibling tools like 'get_document_info' (metadata) and 'write_document' (write operation). It provides comprehensive scope information beyond just the tool name.

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?

The description implies usage context through format support and mode options, but doesn't explicitly state when to use this tool versus alternatives like 'get_document_info' for metadata or 'write_document' for modifications. No explicit when-not-to-use guidance or prerequisite information is provided.

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/mcpc-tech/docsmith-mcp'

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