Skip to main content
Glama
LibreOffice MCP Server

LibreOffice MCP Server

batch_convert_documents

Convert multiple documents from a source directory into a different format at once, saving results to a target directory. Specify source extensions to batch-process whole folders.

Instructions

Convert multiple documents in a directory to a different format

Args:
    source_dir: Directory containing source documents
    target_dir: Directory where converted documents should be saved
    target_format: Target format for conversion
    source_extensions: List of source file extensions to convert (default: common formats)

Input Schema

NameRequiredDescriptionDefault
source_dirYes
target_dirYes
target_formatYes
source_extensionsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden, and it discloses almost nothing beyond the basic action: it doesn't say whether subdirectories are traversed, whether existing files in target_dir are overwritten, whether source files are left untouched, what happens if target_dir is missing, or how failures in a batch are reported. For a bulk write operation this is a significant transparency gap.

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

Conciseness4/5

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

The description is front-loaded with a one-line summary followed by a compact Args block, with no redundant prose. The docstring formatting is slightly mechanical but nothing is wasted.

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?

An output schema exists, so return-value explanation isn't required, but for a batch mutation tool with zero annotations and four parameters the description should at least cover overwrite behavior, recursion, and error handling. As written it is adequate to invoke the tool but leaves consequential side effects undocumented.

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

Parameters3/5

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

Schema description coverage is 0%, so the Args block does real work by mapping each parameter to its role and noting that source_extensions defaults to 'common formats'. However, the explanations largely restate the parameter names — target_format's accepted values (e.g. 'pdf', 'docx') and source_extensions' expected syntax are never specified.

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

Purpose4/5

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

The first line gives a specific verb and resource ('Convert multiple documents') plus the batch scope ('in a directory') and the outcome ('to a different format'), which clearly separates it from siblings like read_document_text or merge_text_documents. It stops short of naming a sibling it is distinct from, so it isn't a 5.

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?

There is no guidance on when to choose this over single-document conversion, read_document_text, or search_documents, and no prerequisites (e.g. whether LibreOffice must be running). The reader must infer usage entirely from the tool name and directory-based framing.

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