Skip to main content
Glama

docx_to_epub

Convert a Word document (.docx) to a valid EPUB3 ebook. Chapters split on the document's top heading level (Heading 1 in a normal manuscript), or on page breaks, or not at all. Keeps bold/italic, lists, tables, inline images (PNG/JPEG/GIF/WebP), hyperlinks and footnotes; reads the title and author from the document's properties. No Pandoc, no Calibre.

Free tier: 5MB/file (10MB for pdf-to-epub, 15MB for split), 3 operations/day, 15 req/min; the converters, merge, split and metadata editing credit Epublys in the output. Pro ($9/mo): 30MB per operation, unlimited daily operations, 60 req/min.

When a call is refused with daily_limited or a Pro-only error, call the upgrade_to_pro tool — it returns a checkout link to hand the user. Details: https://epublys.com/pricing

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "file": "<file>"
    },
    "name": "docx_to_epub"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesBase64-encoded .docx file content
nameNoOriginal filename — used as the title fallback; the output is named after its stem
titleNoBook title (defaults to the document title, then its first heading)
authorNoAuthor (defaults to the document author)
languageNodc:language of the generated EPUB (BCP 47)en
chapterModeNoWhere chapters startheadings

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it names the preserved features (bold/italic, lists, tables, inline images, hyperlinks, footnotes), the metadata fallback chain, the three chapter-splitting behaviors, and the rate/quota limits that gate a call. What it omits is the response shape and whether conversion is synchronous, so the agent can't anticipate the return value.

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?

Well front-loaded: capability and behavior first, commercial constraints second, error-handling escalation last. The pricing paragraph is longer than strictly necessary (the 10MB/15MB parenthetical for other tools is not this tool's concern), but the tier data and rate limits are legitimately actionable.

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?

For a 6-parameter conversion tool with no annotations and no output schema, the description is strong on behavior and limits but silent on what a successful call actually returns — a base64 EPUB, a download URL, or a job id — which an agent needs in order to chain calls. That single gap keeps it at minimum-viable-plus rather than complete.

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 coverage is 100%, so baseline is 3, but the description adds real meaning: it explains what each chapterMode value does operationally (top heading level vs page breaks vs not at all) and clarifies that title/author default from document properties, which is the interaction an agent most needs to reason about. Only name and file are left to the schema alone.

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?

States a specific verb and resource with an explicit input/output format pair ("Convert a Word document (.docx) to a valid EPUB3 ebook"), which cleanly separates it from pdf_to_epub and markdown_to_epub without needing to name them. The follow-on sentence about chapter splitting further scopes what kind of conversion this is.

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

Usage Guidelines4/5

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

Gives concrete routing guidance for the failure path: on daily_limited or Pro-only refusals, call upgrade_to_pro and hand the user a checkout link. It also makes the tier boundaries explicit (5MB/3 ops/day/15 req/min free vs 30MB/unlimited) so an agent can predict when it will be refused. It does not explicitly say when to prefer this over other converters, though the format constraint makes that largely self-evident.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.