Skip to main content
Glama
promaray

Documents-MCP-Server

by promaray

read_doc_contents

Read a document's contents as a string by passing its document ID to enable AI chat document retrieval.

Instructions

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
doc_idYesThe ID of the document to read.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose the return format ('return it as a string'), which is useful, but says nothing about permission requirements, failure modes for missing documents, or size handling. Adequate but thin for a zero-annotation 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?

A single front-loaded sentence with no waste. It is appropriately sized for such a simple operation, though it is almost too terse to add value.

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 one-parameter read tool with no output schema, stating the verb, resource, and return type covers what an agent needs to invoke it. The remaining gaps (auth, errors) are minor for this complexity level.

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?

There is one parameter, doc_id, and the schema already documents it fully at 100% coverage. The description adds no meaning beyond the schema (e.g., ID format or source of the ID), so this is the baseline 3.

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 (read) and resource (document contents) plus the return format. It does not name the sibling edit_doc_contents, but the read/edit distinction is obvious enough that an agent can differentiate without opening schemas.

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?

No indication of when to use this versus edit_doc_contents, no prerequisites, no mention of conditions like permissions or document types. The sibling exists but is never referenced.

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

Deploy Server

Other Tools