MCP Server for accessing and managing files from Nasuni SMB file storage, including text extraction, image handling, and metadata retrieval
The server defines 6 read-only tools for browsing and retrieving files from SMB storage. All tools have descriptions and basic input schemas. However, there are significant gaps in schema completeness, parameter constraints, and error handling guidance. Output schemas are not documented. Tool names are reasonably clear but could be more action-focused. Descriptions are adequate but generic, lacking LLM-optimization for tool selection and context about when to use each variant.
Download file from the SMB share. Returns a file contents converted to a string. Files with binary contents can have unexpected results. This method works the best for text or hypertext files. If a file is binary, or contains non plain text content, it is recommended to use file_contents_base64() method, which works better for binary files. Or use image_file_contents() method for images of supported formats. The path is relative to the root folder. Names are delimited with '/'.
Download file from the SMB share. Returns a file contents encoded as base64. This works the best with binary files. The path is relative to the root folder. Names are delimited with '/'.
Retrieve file from the SMB share and extract text data from it. It is supported for pdf and docx files. For other files it will return the file content as a string same as file_contents() method. The path is relative to the root folder. Names are delimited with '/'.
Returns metadata for a file from SMB share. This represents a file size and detects if a file can be treated as image or a text can be extracted from the file. The path is relative to the root folder. Names are delimited with '/'.
Returns list of files and sub folders by the folder from SMB share. Accepts path to the folder. If the path is empty, it returns the root folder contents. The path is relative to the root folder. Names are delimited with '/'.
Ambiguous/redundant tool naming: 'file_contents', 'file_contents_base64', and 'file_file_contents_as_text' all retrieve files but differ in encoding/parsing. Tool name 'file_file_contents_as_text' contains a duplicate 'file_' prefix (likely a typo). LLMs will struggle to distinguish when to use each variant without deeper reasoning.
No output schemas documented. Tools return FolderContents, FileMetadata, Image, and string types, but the structure of FolderContents and FileMetadata objects is not visible in the provided source code. Without documented schemas, LLMs cannot plan downstream operations or extract specific fields.
Missing parameter constraints and validation hints. The 'path' parameter appears in all tools but has no constraints documented (e.g., character limits, forbidden characters, max depth). No guidance on what happens if a path does not exist or is inaccessible.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 58 | <=2025-11-25 | v2 |
| 2026-03-09 | D | 54 | - | v1 |
Download image file from the SMB share. Returns an Image object. This works only for image files of types png and jpeg. The path is relative to the root folder. Names are delimited with '/'. The image can be resized by specifying the thumb_width parameter. If thumb_width is greater than 0, the image will be resized to the specified width while maintaining the aspect ratio.
No error handling guidance in descriptions. Tools mention file size limits in code (max_return_file_size=1MB, max_read_file_size=20MB) but descriptions do not explain what happens when limits are exceeded or how to recover. LLMs cannot reason about retry strategies.
Descriptions are generic and lack LLM-optimization for tool selection. E.g., 'file_contents' description warns about binary files but does not explicitly state WHEN to prefer 'file_contents_base64' or 'file_file_contents_as_text'. This forces LLMs to infer tool selection logic.
Image thumbnail parameter ('thumb_width') lacks constraints. No documented minimum, maximum, or behavior for invalid values (negative, zero, extremely large). Unbounded numeric parameters invite LLM mistakes.
Tool name 'file_file_contents_as_text' is malformed with duplicate 'file_' prefix. Should be 'extract_text_from_file' or 'get_file_text'. This naming bug reduces clarity.
No documented support status or limits for different file types. Code supports PDF and DOCX text extraction, but descriptions don't state this. Nor do they explain fallback behavior if extraction fails.