Skip to main content
Glama

markdown_to_epub

Build a valid EPUB3 ebook from Markdown files — one file per chapter, in array order. Understands YAML frontmatter (title/author) and Obsidian [[wikilinks]]; cross-file .md links are rewritten to chapter links inside the book. No Pandoc required.

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": {
      "files": "<files>"
    },
    "name": "markdown_to_epub"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYesMarkdown files, one per chapter, in reading order
titleNoBook title (defaults to frontmatter or first heading)
authorNoAuthor (defaults to frontmatter)
languageNoen

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden, and it does disclose real behavior: link rewriting, frontmatter-derived defaults, free-tier attribution inserted into output, size/rate limits, and the specific daily_limited error code. The major omission is the response shape — nothing says whether the EPUB comes back as base64, a URL, or a file reference, and there is no output schema to cover that.

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 core capability is front-loaded in the first sentence, followed by the differentiators and then the limits/pricing block. The pricing tier paragraph is somewhat dense but is genuinely decision-relevant for an agent that may hit quota errors; little else could be cut without losing operational information.

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 4-parameter converter with no output schema, the definition should describe the return value, and it does not. Coverage of limits, error codes, and conversion behavior is good, but an agent still cannot tell what it receives back or how to deliver the file to the user.

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 coverage is 75%, so the schema already documents files, name, content, title, and author defaults. The description reinforces the chapter-order semantics and frontmatter fallbacks, but adds nothing about the `language` parameter (default "en") and no format or constraint detail beyond the schema. Baseline 3 fits.

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+resource ("Build a valid EPUB3 ebook from Markdown files") plus the key scoping rule (one file per chapter, in array order). The added detail about YAML frontmatter, Obsidian wikilinks, and .md link rewriting distinguishes it from siblings like epub_to_markdown, docx_to_epub, and pdf_to_epub without needing to name them.

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?

Clear context for when the tool applies (Markdown sources, no Pandoc available) and an explicit routing rule for failures: on daily_limited or Pro-only errors, call upgrade_to_pro. It doesn't explicitly exclude near-alternatives such as docx_to_epub or pdf_to_epub, but the input format makes that selection obvious.

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.