Skip to main content
Glama

epub_to_markdown

Convert an EPUB ebook to Markdown. Returns a ZIP with one Markdown file per chapter (YAML frontmatter with title/book/author/chapter), an index.md with book metadata and a linked table of contents, and the referenced images. Plain CommonMark — drops straight into an Obsidian vault or any notes pipeline.

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": "epub_to_markdown"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesBase64-encoded EPUB file content
nameNoOriginal filename — the output is named after its stem (e.g. "Book.epub" gives "Book (compressed).epub"); without it the output keeps a fixed name
includeImagesNoCopy referenced images into an images/ folder

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/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 so well: it discloses the exact return structure (one Markdown file per chapter with YAML frontmatter, index.md with metadata and linked TOC, images), the output flavor (plain CommonMark, Obsidian-compatible), size/rate limits, attribution watermarking, and the escalation path on refusal. The only unstated item is authentication mechanics, which is minor for a conversion tool.

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?

Front-loaded with the core action and output contract in the first two sentences, then tier/limit details, then the escalation rule. The pricing block is somewhat long but each element (limits, attribution, upgrade routing) is actionable for an agent, so little is wasted.

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?

There is no output schema, yet the description fully specifies what comes back, so an agent can set user expectations without a trial call. Combined with tier limits and the refusal-handling path, nothing essential for correct invocation is missing for a three-parameter converter.

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 100%, so all three parameters are already documented, establishing the baseline of 3. The description adds a small amount of meaning by naming 'the referenced images' as part of the output, implicitly linking to includeImages, but it does not explain `name` or `includeImages` beyond what the schema states. Notably, the schema's `name` example ('Book (compressed).epub') reads like copy from a compression tool and is inconsistent with the ZIP-of-Markdown output described, which the description does not reconcile.

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 — 'Convert an EPUB ebook to Markdown' — and immediately clarifies the output artifact (a ZIP of per-chapter Markdown files). This is clearly distinguishable from siblings such as markdown_to_epub, epub_to_pdf, and compress_epub without opening any schema.

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 operational context: free-tier caps (5MB/file, 3 ops/day, 15 req/min), Pro limits, and an explicit routing rule — 'When a call is refused with daily_limited or a Pro-only error, call the upgrade_to_pro tool'. It does not explicitly contrast with reverse-direction siblings like markdown_to_epub, so it stops short of full alternative routing.

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.