Remote MCP server for Paperless-ngx document management system
Server has 7 well-named, read-only tools with complete JSON schemas and consistent pagination. All tools follow verb_noun naming (search_*, get_*, list_*). Schemas include proper types and descriptions for all parameters. However, tool descriptions are brief (10-30 chars) and lack context on WHEN to use each tool or dependencies between them. Parameter descriptions are present but minimal. Output schemas are documented in code but not exposed in tool definitions. Error handling returns sentinel errors without recovery guidance. No tool annotations (readOnlyHint, etc.) despite all being read-only.
Perform full-text search across all documents with highlighting
Retrieve full content and metadata of a specific document by ID
Retrieve all documents associated with a specific correspondent
Retrieve all documents associated with a specific tag
List all tags with optional filtering by name
Search for correspondents by name with substring matching
Search documents with optional filters by correspondent, tags, and creation date
Tool descriptions are too brief (10-30 chars). They lack context on WHEN to use each tool, how they differ from similar tools (e.g., search_documents vs fulltext_search), and what the LLM should expect. Descriptions should be 50-200 chars and answer: What does it do? When should I call it instead of a similar tool?
No tool annotations (readOnlyHint, destructiveHint, idempotentHint) despite all 7 tools being read-only. Annotations help LLMs understand safety properties and plan retries correctly. All tools should declare readOnlyHint=true.
Inferred effective spec: 2026-07-28+.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 54 | 2026-07-28+ | v2 |
Error handling returns sentinel errors (ErrSearchFailed, ErrDocumentNotFound) without recovery guidance. Errors should tell the LLM what to do next: 'Document not found. Try search_documents() to find the correct ID.' Current implementation logs details server-side but returns generic messages to the client.
Output schemas are defined in Go structs (DocumentSummary, DocumentDetail, etc.) but not exposed in the MCP tool definitions. LLMs cannot see what fields to expect in responses. Tool definitions should include explicit outputSchema declarations.
Parameter descriptions lack format constraints and ranges. E.g., 'page' and 'page_size' have no min/max documented; 'created_after' and 'created_before' say 'ISO 8601' but no validation rules. Descriptions should state: 'page number (starts at 1, max 1000)' and 'ISO 8601 date string (YYYY-MM-DD)'.