Skip to main content
Glama

Read document index content

doc_read

Retrieve specific blocks, chunks, or anchors from a cached document index without parsing the original file.

Instructions

Read blocks, chunks, or anchors from a cached index without inspecting source document internals.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
indexIdNoCached document index id from doc_analyze.
pathNoAnalyze this path if indexId is not supplied.
anchorIdNo
blockIdNo
chunkIdNo
limitNo
Behavior2/5

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

No annotations provided; description states read-only operation from cache but omits behavioral details like idempotency, side effects, or prerequisites (e.g., index must exist from doc_analyze).

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?

Single sentence conveys core purpose efficiently. Slightly front-loaded but could benefit from additional context without sacrificing brevity.

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

Completeness2/5

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

Description is insufficient given six parameters, no output schema, and no annotations. Lacks explanation of how to combine parameters (e.g., indexId vs path) or what the return value includes.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is low (33%), and description mentions only general element types (blocks, chunks, anchors) without clarifying parameter relationships or usage logic for the five non-described parameters.

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?

Description clearly states the tool reads blocks, chunks, or anchors from a cached index, distinguishing it from source document inspection. Verb 'Read' and specific resource 'cached index' are explicit.

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?

Description implies usage when a cached index is available ('without inspecting source internals'), but does not provide explicit when-to-use or when-not-to-use guidance compared to siblings like doc_analyze or doc_search.

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/flyfish-dev/file-ai'

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