Skip to main content
Glama

read_doc_contents

Retrieve the full text content of a document by its ID and return it as a string, enabling direct use of document contents in chat.

Instructions

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
doc_idYesId of the document to read
Behavior2/5

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

No annotations are provided, so the description must bear the full burden of behavioral disclosure. It only states that the contents are returned as a string and does not mention permissions, read-only behavior, error cases, or what happens with missing or malformed document IDs. For a read operation, this is a notable gap.

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 a single concise sentence that communicates the core action immediately. The minor grammatical error ('return it a string' instead of 'return it as a string') slightly detracts from polish but does not harm clarity significantly.

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 read tool, the description is mostly adequate: it names the action and the return type. However, with no annotations and no output schema, it could better describe return value details, potential errors, or the scope of content returned (e.g., full document vs. excerpt).

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%, with the single parameter 'doc_id' already described as 'Id of the document to read'. The tool description adds no additional parameter-level meaning, so the baseline score of 3 applies.

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 uses a specific verb ('Read') with a clear resource ('contents of a document') and even specifies the return type ('a string'). This clearly distinguishes it from the sibling tool 'edit-document', which implies modification rather than reading.

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 usage is implied by the tool's purpose: use it when you need to view a document's contents. However, there is no explicit guidance on when not to use it or which sibling alternative to choose, though the sibling name 'edit-document' hints at the distinction.

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/dani-tc/anthropic-mcp-chat'

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