Skip to main content
Glama

validate_epub

Validate an EPUB file for errors, compatibility issues, and spec compliance. Returns JSON with check results. Can optionally auto-fix common issues.

Free tier: 5MB/file (10MB for pdf-to-epub, 15MB for split), 3 operations/day, 15 req/min, output includes Epublys branding. Pro ($9/mo): 30MB per operation, unlimited daily operations, 60 req/min, no branding.

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

Input Schema

NameRequiredDescriptionDefault
fileYesBase64-encoded EPUB file content
autoFixNoAuto-fix common issues and return repaired EPUB
deepScanNoPerform deep scan (XHTML well-formedness, broken links, etc.)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/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 the JSON result, the optional auto-fix mode, and hard quota/rate limits plus branding on free output. What it omits is what happens on an unparseable or oversized file (hard error vs partial results), and whether autoFix rewrites in place or only returns a repaired copy (the schema implies the latter, the description does not).

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 leads, return shape follows, then tier limits and the escalation rule in a clean sequence. The pricing section is a bit long relative to the functional content, but every sentence is actionable (limits, rate, upgrade path) rather than filler.

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 3-parameter tool with no output schema and no annotations, the description covers purpose, cost/limit constraints, and the failure-to-upgrade path, which is what an agent most needs. The one remaining gap is return-value detail — 'Returns JSON with check results' doesn't say how issues are graded or whether a pass/fail summary exists — which matters since no output schema is supplied.

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 `file`, `autoFix` and `deepScan` are already documented in structured form. The description only echoes autoFix ('Can optionally auto-fix common issues') and never mentions `deepScan` or the base64 requirement, so it adds essentially nothing beyond the schema — baseline 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource ('Validate an EPUB file') plus what is checked (errors, compatibility issues, spec compliance), and notes it returns JSON. This clearly separates it from the transformation siblings (merge_epub, split_epub, compress_epub), though it never names an alternative explicitly.

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 concrete operating context (free vs Pro size/daily/rate limits) and an explicit escalation rule: on a daily_limited or Pro-only refusal, call `upgrade_to_pro` for a checkout link. It does not discuss when validation is unnecessary (e.g., after a successful merge) or how it relates to edit_epub_metadata, but for a single-purpose tool that gap is minor.

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.