Skip to main content
Glama

split_epub

Split an EPUB. With a chapter range (chapterStart and/or chapterEnd) the result is ONE base64-encoded EPUB of exactly those chapters, in order, with the book's metadata, a table of contents limited to them and the fonts and images they use. Without a range the result is a base64-encoded ZIP archive holding one EPUB per chapter.

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

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
chapterEndNoLast chapter to include (inclusive, optional)
chapterStartNoFirst chapter to include (1-indexed, optional). Giving either bound returns one EPUB of the range instead of a ZIP
keepMetadataNoPreserve the original author, publisher and description in the output

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/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 it well: it discloses output format per mode, that metadata and a range-limited TOC and only the used fonts/images are carried over, that output is base64, how the output filename derives from `name`, the size/rate/daily quotas per tier, and the attribution requirement in the output. That is exactly the kind of operational context annotations would otherwise supply.

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 splitting behavior is front-loaded in the first two sentences, and the pricing/limits block, while a third of the text, is dense with actionable quota and escalation data rather than filler. Minor drag from the parenthetical tier size list ("5MB/file (10MB for pdf-to-epub, 15MB for split)") that mixes in sibling facts.

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

Completeness4/5

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

There's no output schema, so the description properly explains return values (base64 EPUB vs. base64 ZIP) and the naming convention, which is what an agent needs to consume the result. Remaining gaps are edge-case errors: what happens if chapterStart exceeds the chapter count, or which failures besides daily_limited trigger the upgrade path.

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 the baseline is 3, but the description adds cross-parameter meaning the schema only hints at: supplying either bound flips the result from a ZIP of many EPUBs to a single EPUB of that range, and inclusive/exclusive bound behavior is reinforced. It adds little about `keepMetadata` or `name` beyond the schema, which caps it at 4.

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?

"Split an EPUB" names a specific verb and resource, then immediately disambiguates the two operating modes: with a chapter range you get one base64 EPUB of exactly those chapters, without a range you get a ZIP with one EPUB per chapter. An agent can predict the output shape before calling, and split vs. the merge/convert siblings is unambiguous.

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?

The range-vs-no-range condition is spelled out as the selection criterion, and the pricing paragraph gives an explicit escape hatch: on daily_limited or a Pro-only error, call `upgrade_to_pro`. What's missing is guidance on non-tier failures (e.g., a range beyond the book's chapter count) or when a sibling like merge_epub or compress_epub would be the better pick.

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.