Static source inference · medium confidence · evidence: Streamable HTTP
Current-spec patterns detected
Summary
This server presents 11 tools across three functional domains (file operations, task management, weather). While tool names follow verb_noun conventions and input schemas are visible in the source code, the implementation has significant gaps: tool descriptions are present but generic (averaging ~50 chars, well below the 194-char production baseline); parameters lack detailed constraints and validation guidance; output schemas are not formally documented; error handling is minimal; and no security hardening or rate limiting is evident. The codebase shows basic tool registration via a custom MCPServer framework, but lacks production-grade documentation and safety patterns expected of A-grade tools. Most tools would score 45-55 individually, typical for a community reference implementation, not production-ready.
Missing or incomplete output schemas. Tool handlers return success/error objects with fields like 'files', 'content', 'size', 'created', 'modified', but no formal output schema documentation. LLMs cannot infer what fields to expect or plan downstream tool calls.
Generic, brief descriptions (30 - 70 chars). Example: 'List files in a directory' (28 chars), 'Mark a task as completed' (24 chars). Production baselines expect 194 chars average. Descriptions lack WHEN to use the tool, WHAT to expect, and HOW to handle errors.
Expand tool descriptions to 150 - 250 characters and include WHEN, WHAT, and HOW. Example: 'List all files and directories in a given path. Returns file metadata (size, modification time). Use this before read_file or delete_file to verify paths. Returns an error if the directory does not exist, use absolute or relative paths (e.g., /home/user or ./data).'
Add parameter constraints in descriptions. Example for directory: 'The directory path to list (absolute or relative; e.g., /tmp or ./src). Must exist.'
Add pagination to list_files and list_tasks. Include limit (default 20, max 100) and offset parameters. Return a total count and next_offset for chaining.
Implement confirmation/dry-run for delete_file and delete_task. Add a mode parameter: {type: 'string', enum: ['execute', 'dry-run', 'confirm'], description: 'Set to "dry-run" to preview what would be deleted; "confirm" to prompt the user; "execute" to delete immediately.'}
Enhance error messages with recovery guidance. Example: if delete_file fails with 'Directory is not empty', return 'Directory not empty, use list_files("' + path + '") to see contents, or pass recursive=true to delete recursively.'
No parameter validation guidance in descriptions. Parameters like 'directory' (list_files), 'filePath' (read_file), 'location' (weather tools) lack format constraints, examples, or validation rules. LLMs cannot infer whether paths are absolute/relative or whether location must be a city name vs coordinates.
Destructive operations lack confirmation or dry-run patterns. delete_file and delete_task accept parameters and execute immediately with no undo path or pre-execution confirmation. Agents can accidentally delete data.
Error responses provide minimal recovery guidance. Handlers return {success: false, error: error.message}, which could be raw OS errors ('ENOENT: no such file or directory') or API failures. No actionable next steps for LLMs (e.g., 'File not found. Use list_files() first to verify the path exists.').
No pagination support on list operations. list_files and list_tasks return all items without limit or offset parameters. Large directories or task lists can blow the context window.
No tool annotations for safety. Tools lack readOnlyHint, destructiveHint, or idempotentHint metadata. Clients cannot understand which tools are safe to retry (create_file is idempotent if called twice with same params; delete_file is not).
No permission gates or audit trails. Tools execute file I/O and state mutations without checking caller permissions or logging who did what. Compliance and security auditing is not possible.
No timeout or rate-limit handling on external API calls (weather tools). If the weather service hangs, the entire agent blocks. No guidance on retryability.
Parameter 'recursive' in delete_file defaults to false, but the conditional logic and error message ('Directory is not empty...') may confuse LLMs. If an agent intends to delete a non-empty directory and omits recursive, it gets an error rather than auto-delegation to a safer path.
delete_file
Add tool annotations. Mark all file/task reads with readOnlyHint=true. Mark delete_file and delete_task with destructiveHint=true. Mark create_file with idempotentHint=true (if overwrite is disabled).
Implement permission checks. Gate create_file, delete_file, create_task, delete_task behind a caller_has_permission('write') check. Log all mutations with timestamp, caller ID, tool name, parameters, and result.
Add timeouts and retry metadata to weather tools. Return a 'retryable' field: {retryable: true, retry_after_ms: 5000} if the external API is unavailable.
For the weather tools, validate input location format in descriptions. Example: 'The location to get weather for (city name, e.g., "New York", "London", "Tokyo"). Coordinates (lat,lon) not yet supported.'
Add a dry-run parameter to create_file to preview the file size and parse result without writing to disk.
For list_tasks, document the filter parameter as an enum with clear descriptions: {type: 'string', enum: ['all', 'completed', 'incomplete'], description: 'Filter tasks by status: "all" (return all tasks), "completed" (only done tasks), "incomplete" (only pending tasks). Default: "all".'}.