An MCP enabled multi-format document reader supporting DOCX, PDF, TXT, and Excel files
Single tool with reasonable naming and acceptable description, but significant gaps in parameter documentation, output schema clarity, and error handling guidance. The tool name 'read_document' follows verb_noun convention correctly. Description is present but lacks context about error scenarios and return format. Input schema exists but lacks depth in constraint documentation. No output schema is documented for the LLM. Error handling returns plain strings rather than structured guidance.
Reads and extracts text from a specified document file. Supports multiple document types: TXT, DOCX, PDF, Excel (XLSX, XLS).
Output schema is not documented. Tool returns plain strings, but LLMs need to know the structure: extracted text, error messages, or empty file indicators. Without documented output schema, the LLM cannot plan downstream processing or error recovery.
Error responses lack actionable recovery guidance. Strings like 'Error: File not found' or 'Error reading DOCX: ...' tell the LLM nothing about what to do next, should it search for the file, ask the user, or retry? Errors should classify as retryable/user-fixable/fatal and suggest next steps.
Parameter 'filename' description lacks format constraints and examples. It states 'Path to the document file to read (supports absolute or relative paths)' but does not clarify: Can it be a URL? What happens if the path is relative, relative to what? Are symlinks followed? Does it accept glob patterns? These ambiguities invite invalid input from LLMs.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-21 | D | 52 | 2026-07-28+ | v2 |
| 2026-03-09 | D | 50 | - | v1 |
No documentation of supported file types in parameter or return schema. While the tool description lists 'TXT, DOCX, PDF, Excel (XLSX, XLS)', the input parameter does not state this constraint or what happens with unsupported types. An enum of allowed extensions (or a constraint like 'files with .txt, .docx, .pdf, .xlsx, .xls extensions') would be clearer.
No pagination or size limits documented. If a document is very large (e.g. a 10,000-page PDF or 100MB Excel file), the tool may return enormous strings that blow the context window. The description should state a maximum size or mention that large files may be truncated.