Skip to main content
Glama

merge_text_documents

Combine multiple text documents into one file with custom separators between content sections using the LibreOffice MCP Server.

Instructions

Merge multiple text documents into a single document

Args:
    document_paths: List of paths to documents to merge
    output_path: Path where merged document should be saved
    separator: Text to insert between merged documents

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
document_pathsYes
output_pathYes
separatorNo ---

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesFull path to the document
existsYesWhether the file exists
formatYesDocument format (odt, ods, odp, etc.)
filenameYesDocument filename
size_bytesYesFile size in bytes
modified_timeYesLast modification time
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions that documents are merged and saved, implying a write operation, but lacks details on permissions, error handling, file format support, or what happens if output_path exists. This is insufficient for a mutation tool with zero annotation coverage.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the core purpose in the first sentence, followed by a structured Args section that efficiently documents parameters without redundancy. Every sentence serves a clear purpose, making it appropriately sized and easy to parse.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity (3 parameters, mutation operation) and the presence of an output schema (which handles return values), the description covers the basic operation and parameters. However, it lacks behavioral context like file handling or error scenarios, making it adequate but incomplete for safe usage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It lists all three parameters (document_paths, output_path, separator) with brief explanations, adding meaning beyond the schema's titles. However, it doesn't specify path formats or separator usage details, leaving some gaps in semantic clarity.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('Merge multiple text documents') and the resource ('into a single document'), distinguishing it from siblings like 'batch_convert_documents' or 'create_document' which involve different operations. It directly answers what the tool does without being vague or tautological.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like 'create_document' or 'insert_text_at_position', nor does it mention prerequisites or exclusions. It states what the tool does but offers no context for selection among the available document manipulation tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/patrup/mcp-libre'

If you have feedback or need assistance with the MCP directory API, please join our Discord server