Skip to main content
Glama

Read document text

read_document
Read-onlyIdempotent

Fetch a document by ID or attachment path and return its full text, converting PDFs and plain-text files so you can read or search archived association documents.

Instructions

Fetch a document and return its text (PDF and plain-text files).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
documentYesA document id, or an attachment `path` from another tool.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
noteNo
textYes
filenameYes
truncatedNo
size_bytesYes
content_typeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and openWorld, so the safety profile is covered. The description adds the supported file types (PDF, plain-text), which is useful, but says nothing about size limits, failure modes for unsupported types, or authentication.

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?

A single tight sentence with the resource and supported formats front-loaded and zero wasted words.

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?

For a simple one-parameter read tool with an output schema and full annotation coverage, the return-value contract is already handled structurally. The main gap is routing guidance among the many read/list/search siblings, but nothing required to invoke it correctly is missing.

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% and the single parameter is fully documented in the schema, including that it can be an id or an attachment path. The description adds no parameter detail, so the baseline 3 is appropriate.

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?

States a specific verb (fetch/read) and resource (document text), and scopes it to PDF and plain-text files. It implicitly separates itself from download_document by returning text rather than a file, but never names the sibling, so an agent must infer the distinction.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance and no reference to alternatives like download_document or find_documents, despite several plausibly overlapping siblings. The agent is left to guess whether to read, download, or search.

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