Skip to main content
Glama

create_document

Create new LibreOffice documents (Writer, Calc, Impress, Draw) with specified paths and optional initial content for automated document generation.

Instructions

Create a new LibreOffice document

Args:
    path: Full path where the document should be created
    doc_type: Type of document to create (writer, calc, impress, draw)
    content: Initial content for the document (for writer documents)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
doc_typeNowriter
contentNo

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 full burden for behavioral disclosure. It states this creates a document but doesn't mention whether this requires write permissions, what happens if a file already exists at the path, whether the operation is atomic, or what the output contains. The description provides basic functional information but lacks important behavioral context for a creation tool.

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 efficiently structured with a clear purpose statement followed by parameter explanations. Every sentence adds value: the first states what the tool does, and the subsequent lines explain each parameter's purpose. There's no wasted text or redundancy.

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 this is a creation tool with no annotations but with an output schema (which handles return values), the description is moderately complete. It explains the parameters well but lacks behavioral context about permissions, file overwriting, or error conditions. The presence of an output schema means the description doesn't need to explain return values, but for a mutation tool, more behavioral guidance would be helpful.

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?

With 0% schema description coverage, the description compensates well by explaining all three parameters: 'path' (full path where document should be created), 'doc_type' (type with specific options listed), and 'content' (initial content for writer documents). It adds meaningful context beyond the bare schema, though it could clarify that 'content' only applies to 'writer' type documents.

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 description clearly states the verb 'Create' and resource 'new LibreOffice document', making the purpose immediately understandable. It distinguishes from siblings like 'open_document_in_libreoffice' or 'read_document_text' by focusing on creation rather than opening or reading existing documents. However, it doesn't explicitly differentiate from 'create_live_editing_session' which also creates something.

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. There's no mention of prerequisites, when not to use it, or comparison to sibling tools like 'create_live_editing_session' or 'open_document_in_libreoffice'. The agent must infer usage from the tool name alone.

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