Skip to main content
Glama
mcp-docs-reader

mcp-docs-reader

by aranshayan

List documents

list_documents
Read-onlyIdempotent

Lists PDF, Word, Excel, CSV, Markdown, and text files in an allowed folder, with optional recursive search and result limits for safe document discovery.

Instructions

List PDF, Word, Excel, CSV, Markdown and text files in an allowed folder.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_documents"
  }
}

Input Schema

NameRequiredDescriptionDefault
dirNoFolder (default: first allowed root).
limitNo
recursiveNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and openWorldHint=false, so the safety profile is covered. The description adds the useful constraint that listing is confined to allowed folders, but says nothing about error behavior for disallowed paths, result ordering, or what happens at the 500 limit.

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 filler or redundancy. It is efficient, though the brevity comes at the cost of the missing behavioral and parameter detail noted above.

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?

A low-complexity read-only tool with no output schema, and annotations cover safety. Still missing is anything about the shape of the returned file list and the semantics of the two undocumented parameters, which an agent would need to call this confidently.

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 only 33% — only 'dir' carries a description; 'limit' and 'recursive' have none. The description contributes nothing about recursion depth, the default of 100, or the 500 maximum, so the two undocumented parameters remain unexplained in both places.

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?

A specific verb ('List') plus resource ('PDF, Word, Excel, CSV, Markdown and text files') and a scope qualifier ('in an allowed folder'). This is clearly distinguishable from the read_* siblings, which retrieve content rather than enumerate it. It stops just short of naming that relationship explicitly.

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?

The phrase 'in an allowed folder' hints at a sandbox constraint but there is no statement of when to use this versus the read_* tools, no guidance on choosing recursive vs non-recursive, and no mention of what to do when a folder is not allowed.

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