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; 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": "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.7/5.0
Behavior4/5

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

With no annotations present, the description carries the burden and does substantial work: it discloses that results come back as JSON, that autoFix mutates/repaired output is returned, that deepScan is on by default, and it states hard quotas (file size caps, 3 ops/day, 15 req/min) plus an output-attribution requirement. It still omits what happens server-side during autoFix and what the JSON contains, but the operational constraints are well disclosed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core purpose is correctly front-loaded in the first sentence, but the pricing/limits block occupies roughly two-thirds of the text and reads as boilerplate shared across many tools. It earns partial place by explaining quota-related failures, but it is heavy relative to the tool-specific 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?

There is no output schema, so the description is the only source for return semantics — yet 'Returns JSON with check results' gives no structure, severity levels, or how a repaired EPUB from autoFix is delivered (base64 body, URL, or otherwise). For a validator whose entire value is its report, this is a meaningful gap.

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, including defaults for autoFix and deepScan. The description mentions auto-fix and deep checks but adds no format, base64 handling, or behavioral nuance beyond what the schema already says, so 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 description states a specific verb and resource ('Validate an EPUB file') plus the scope of validation (errors, compatibility issues, spec compliance) and an optional mutation mode (auto-fix). No sibling tool performs validation, so an agent can select it unambiguously.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a clear escalation rule for the failure case ('when a call is refused with daily_limited or a Pro-only error, call upgrade_to_pro'), which is genuinely useful. However, it never says when to prefer validate_epub over alternatives or when to enable autoFix versus running a read-only validation first — usage is implied rather than stated.

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.