MCP server for merging multiple files into one
This STDIO-only file merger server has two tools with adequate naming and reasonable descriptions, but lacks critical depth in schema documentation, parameter descriptions, and error handling guidance. The list_allowed_directories tool is minimal but functional. Error handling exists but provides limited recovery guidance. Output formats are text-based rather than structured, which wastes tokens and limits agent composition. The server validates paths carefully (security positive), but tool definitions could better guide LLM selection and parameter construction.
Returns the list of directories that this server is allowed to access. Use this to understand which directories are available before trying to merge files.
Merge multiple files into a single output file. Reads content from each input file in the order provided and writes it sequentially to the output file. Returns information about the merge operation including file sizes and total size. All specified paths must be within allowed directories if specified.
Input schema properties lack individual descriptions. The merge_files inputSchema defines 'inputPaths' and 'outputPath' with only a top-level description; each parameter MUST have its own description explaining format, constraints, and purpose.
No output schema documented. The merge_files and list_allowed_directories tools return text content wrapped in {type: 'text', text: '...'}, but the LLM does not know the exact structure of the response or what fields it should expect for downstream composition. LLMs need to know what fields to expect so they can plan downstream tool calls.' This limits chaining and forces the LLM to parse unstructured text.
Error messages lack recovery guidance. When a path validation fails or a file cannot be read, the tool returns a generic error message (e.g., 'Error: Invalid input path: ...') without suggesting next steps.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | C | 61 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 49 | - | v1 |
Text-only responses instead of structured output. Both tools return plain-text formatted strings. This wastes tokens (LLM must parse freeform text), prevents structured downstream composition, and increases hallucination risk. Free-text responses require the LLM to parse unstructured output, which is error-prone and wastes tokens.' merge_files should return {files: [{name, size_bytes}], total_size_bytes, output_path} instead of formatted text.
Missing parameter constraints and descriptions. The merge_files 'inputPaths' parameter is an array with minItems=1, but lacks guidance on: (a) whether paths must exist before calling, (b) whether they must be absolute or can be relative, (c) whether globs or wildcards are supported, (d) maximum file count. The 'outputPath' parameter lacks guidance on whether the directory will be auto-created (it is, but this is undocumented).
No idempotence or confirmation for destructive operation. The merge_files tool overwrites the output file without warning. If called twice with the same inputs, it creates the same output but loses any intermediate edits.
Tool composition is limited. merge_files only works if the LLM already knows valid input paths. The list_allowed_directories tool helps, but there is no discovery tool to list available files within those directories. An agent planning a merge must blind-guess file names or make extra calls. Consider adding a 'list_files' tool to enable full composition.