Skip to main content
Glama

split_document

Split an open Word document into multiple DOCX files, each based on a heading section. Choose output directory and heading level.

Instructions

Split the open document into multiple DOCX files, one per heading section.

Args: output_dir: Directory for output files. Defaults to /split_output. at_heading_level: Heading level to split on (default 1).

Returns: {"output_dir": str, "files": list[str], "parts": int}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
output_dirNo
at_heading_levelNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description must carry the full burden. It states the action (split) and return structure but does not disclose side effects (e.g., whether the original document remains open, if it is modified, or any destructive behavior). This leaves gaps for an agent.

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 a single focused sentence followed by concise parameter documentation and return type. It is front-loaded and contains no unnecessary words.

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

Completeness5/5

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

For a tool with only two optional parameters and an output schema present, the description is complete. It explains parameters, return values, and defaults. No additional context is needed.

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 adds essential meaning by explaining the purpose of output_dir (directory for output files) and at_heading_level (heading level to split on) along with defaults. This compensates well for the missing schema descriptions.

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 tool splits the open document into multiple DOCX files based on heading sections. This specific verb-resource combination distinguishes it from sibling tools like merge_documents, split_table, and others.

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

Usage Guidelines3/5

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

The description implies usage when you need to break a document by headings but does not explicitly state when to use it over alternatives or when not to use it. No exclusion criteria or comparison with similar tools is provided.

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/SecurityRonin/docx-mcp'

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