Skip to main content
Glama

merge_epub

Merge multiple EPUB files into a single ebook with table of contents and chapter dividers. Accepts 2+ base64-encoded EPUB files.

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

Input Schema

NameRequiredDescriptionDefault
filesYesArray of base64-encoded EPUB files to merge (order preserved)
namesNoOriginal filenames, in the same order as files — the output is named after them ("A + B.epub", or "A + N more.epub" past two); without them it is merged.epub
titleNoTitle for the merged EPUB (optional)
authorNoAuthor for the merged EPUB (optional)
dividersNoInsert divider pages between books

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/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 well: it discloses file-size caps (5MB free / 30MB Pro), operation and rate limits (3/day, 15 req/min), the credit/attribution side effect in the output, and the 2-file minimum. Not disclosed: failure modes for malformed or encrypted EPUBs, or whether ordering/duplicate chapters are handled. Those gaps keep it below 5.

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?

Purpose is front-loaded in one sentence, followed by tiered limits and an escalation pointer, so the agent can scan and act. The pricing block is somewhat dense for a tool description but each line carries operational facts (size, rate, attribution) that affect whether the call will succeed.

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?

For a 5-parameter, no-output-schema tool, the definition covers the things an agent must know before calling: minimum file count, encoding, size ceilings, quotas, and the upgrade path. Only the failure behavior for invalid or unsupported EPUB content is left unexplained.

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 files, names, title, author, and dividers are already fully documented, including the naming behavior ('A + B.epub', 'A + N more.epub', fallback to merged.epub). The description adds only the correlates 'table of contents and chapter dividers', which mildly reinforces the dividers flag. Baseline 3 applies.

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 opening sentence names a specific verb and resource ('Merge multiple EPUB files into a single ebook') plus the output characteristics (table of contents, chapter dividers), so the agent knows exactly what will be produced. No sibling performs merging, so this is unambiguous against split_epub, compress_epub, and the converters.

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?

It gives a clear escalation rule: when a call fails with daily_limited or a Pro-only error, call upgrade_to_pro and hand the user the checkout link. That is explicit conditional routing. What's missing is guidance on choosing merge_epub versus splitting or compressing an existing file, though those are clearly different operations.

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.