The filesystem server has 8 tools with complete definitions visible in the source code. All tools have verb-starting names (create_, directory_, edit_, get_, list_, move_, read_, write_) that follow action verb conventions. All descriptions are present and in the 100-200 char range, meeting the baseline. However, there are critical gaps: (1) parameter descriptions are present but minimal for some tools; (2) no output schemas are documented, tools return unstructured responses (JSON strings, plain text) without declaring their shape to the LLM; (3) error handling lacks recovery guidance; (4) no security validation is visible (path traversal checks); (5) no tool annotations (readOnlyHint, destructiveHint, idempotentHint) despite having clear read/write semantics. The tools are well-named and cover a coherent domain (filesystem ops), but fall short of production-grade quality due to missing output contracts and defensive validation.
Create a new directory or ensure a directory exists. Can create multiple nested directories in one operation. If the directory already exists, this operation will succeed silently. Perfect for setting up directory structures for projects or ensuring required paths exist. Only works within allowed directories.
Get a recursive tree view of files and directories as a JSON structure. Each entry includes 'name', 'type' (file/directory), and 'children' for directories. Files have no children array, while directories always have a children array (which may be empty). The output is formatted with 2-space indentation for readability. Only works within allowed directories.
Make line-based edits to a text file. Each edit replaces exact line sequences with new content. Returns a git-style diff showing the changes made. Only works within allowed directories.
Retrieve detailed metadata about a file or directory. Returns comprehensive information including size, creation time, last modified time, permissions, and type. This tool is perfect for understanding file characteristics without reading the actual content. Only works within allowed directories.
Get a detailed listing of all files and directories in a specified path. Results clearly distinguish between files and directories with [FILE] and [DIR] prefixes. This tool is essential for understanding directory structure and finding specific files within a directory. Only works within allowed directories.
Output schemas are not documented. Tools return unstructured responses (JSON strings for directory_tree, plain text for others) without declaring to the LLM what fields and types to expect. This violates the pattern:tool requirement and forces LLMs to parse output via trial-and-error, increasing hallucination risk.
No path traversal or security validation visible. The tools accept 'path' parameters with descriptions like 'Only works within allowed directories' but provide no evidence of validation in the source code. If an LLM or user can pass '../../etc/passwd', data exposure results. The rubric requires: 'Treat all agent-provided input as untrusted. Sanitize against SQL injection, command injection, and path traversal.'
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 59 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 47 | - | v1 |
Move or rename files and directories. Can move files between directories and rename them in a single operation. If the destination exists, the operation will fail. Works across different directories and can be used for simple renaming within the same directory. Both source and destination must be within allowed directories.
Read the complete contents of a file from the file system. Handles various text encodings and provides detailed error messages if the file cannot be read. Use this tool when you need to examine the contents of a single file. Only works within allowed directories.
Create a new file or completely overwrite an existing file with new content. Use with caution as it will overwrite existing files without warning. Handles text content with proper encoding. Only works within allowed directories.
No tool annotations (readOnlyHint, destructiveHint, idempotentHint). The tools have clear semantics (read_file is read-only, write_file is destructive, move_file is destructive), but these are not explicitly declared in the tool definition. Modern MCP supports tool annotations that improve agent decision-making.
Error handling lacks recovery guidance. In CreateDirectoryTool.ts and others, catch blocks throw generic errors like 'Failed to create directory: <error>' without actionable next steps. The rubric requires: 'Error responses must tell the LLM what to do next' and include suggestions for retryable vs. fatal failures.
Destructive operations (write_file, move_file, edit_file) lack dry-run or confirmation support. write_file will 'completely overwrite an existing file without warning', and move_file will 'fail if the destination exists', but there is no confirmation step before execution. Agents can accidentally destroy data. The rubric requires: 'Irreversible operations should support a dry-run or confirmation step.'
Parameter descriptions are minimal and lack format/constraint details. For example, 'path' parameters across all tools say only 'Path to...' without specifying allowed formats, character restrictions, or examples of valid paths. The rubric requires: 'When a parameter has a regex pattern, length limit, or character restriction, state it in the description.'
No rate limiting or resource bounds documented. Tools like directory_tree recursively traverse the filesystem with no depth limit or size cap. A large directory tree could blow the context window. The rubric requires: 'Even if the API allows returning thousands of items, cap results at a reasonable limit and offer pagination.'