Skip to main content
Glama

read_doc_contents

Read text content from a PDF file by providing its filename. Extracts and returns the full document text for use in LLM workflows.

Instructions

Read the contents of a PDF document and return it as a string.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
doc_idYesPDF filename to read
Install Server

TDQS

A3.5/5.0
Behavior3/5

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

No annotations exist, so the description carries full burden. It discloses the tool reads PDFs and returns a string, but does not mention behavior for non-existent files, access permissions, large file handling, or any side effects. Adequate but minimal.

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?

One sentence, front-loaded with the action verb 'Read', zero wasted words. Every element serves a purpose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple single-parameter tool with no output schema, the description is mostly adequate. It covers the core purpose and return type, but could benefit from mentioning error cases (file not found, unreadable) or that the string contains raw text from the PDF.

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 coverage is 100%, so the description adds little beyond the schema. It correctly describes the single parameter as a 'PDF filename', matching the schema's description. No additional meaning about format, path conventions, or restrictions is provided.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool reads a PDF and returns its content as a string. It specifies both the file type (PDF) and the return format, distinguishing it from siblings like list_available_pdfs which lists files rather than reading them.

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 when to use this tool (after listing PDFs), but does not explicitly state when not to use it or mention alternatives. No guidance on prerequisite steps (e.g., file must exist).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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/einsteindark-edgm/mcp-read-doc-local'

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