Skip to main content
Glama

Ebook File Check

ebook_check

Read-only

Validates one EPUB (a directly hosted public URL or a file attached in chat) against the EPUB 2/3 specification using a pinned local EPUBCheck 5.3.0 engine run in a no-network sandbox. Each call takes exactly one source: the url parameter or the file attachment, never both. Returns the automated verdict: pass boolean, EPUB version, message counts by severity (fatal/error/warning/usage), findings grouped most-severe-first with EPUBCheck rule id (RSC-005, OPF-014, …), file path and line/column, plus a structural inventory (spine items, media types, remote-resource state), SHA-256 of the exact bytes, and truncation metadata. Use for one-file readiness and diagnosis: 'is this ebook valid', 'does this EPUB have specification problems before upload', 'what is wrong with it'. A pass means only that the bytes satisfied the automated profile; it never renders the book, judges accessibility, or guarantees any store will accept it, and human review of how the book reads and looks is always required. Downloads and validates a live EPUB under a 110-second call deadline; tell the user before the call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoDirect public HTTP(S) URL to the EPUB file bytes, including the protocol, not a ChatGPT file id, local path, cloud-drive share, archive/viewer page, or authenticated URL needing a login. Each call takes either URL sources or attached-file sources, never both STRICT RULE: Ebook check failed: provide either an EPUB URL or an attached EPUB file, not both STRICT RULE: Ebook check failed: provide a public EPUB URL or attach the EPUB file
fileNoAn EPUB file attached in chat, up to 25 MB, validated from its exact bytes. Provide either this attachment or url, never both.
maxMessagesNoMaximum spec findings to return, most severe first (default 200); raise it to see more of a very noisy book, lower it to keep the answer short

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
passYesTrue when the EPUB has no fatal or error messages against the automated profile
bytesYesDownloaded EPUB size in bytes
countsYesCounts of EPUBCheck findings grouped by severity
sha256YesSHA-256 hash of the exact validated bytes
finalUrlYesURL after redirects, with query string and fragment stripped
findingsYesBounded spec findings, most severe first, capped by maxMessages
fetchedAtYesISO timestamp the EPUB was fetched and validated
inventoryYesStructural inventory reported for the EPUB container
nonclaimsYesWhat this automated result does not establish
redirectsYesRedirect hops followed
truncationYesFinding totals and the applied limit on returned findings
contentTypeNoContent-Type the server returned
epubVersionNoDetected EPUB version, e.g. 2.0.1 or 3.0; omitted when the engine could not detect it
processingMsYesTotal processing time in milliseconds
requestedUrlYesThe checked EPUB source: the submitted URL with query and fragment stripped, or the attached file's name
engineVersionYesEPUBCheck engine version that produced the verdict
ruleProfileDateYesRelease date of the pinned EPUBCheck rule profile
humanReviewItemsYesChecks only a qualified human can perform
epubVersionDetectedYesDistinguished state: false means the version could not be detected, distinct from a detected-but-invalid version
humanReviewRequiredYesAlways true: automated conformance never covers how the book reads or renders

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description adds substantial behavioral context: the pinned EPUBCheck 5.3.0 engine, no-network sandbox, exact-byte SHA-256, truncation metadata, and the pass-meaning caveat. It also discloses the live download and 110-second deadline, which is critical for an agent to set user expectations. No contradiction with annotations.

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 description is dense but well-organized: it front-loads the core validation action, then the return payload, then usage guidance, then caveats. Every sentence earns its place, though the return-value enumeration is long and could be trimmed slightly without losing essential information.

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?

Given the tool's complexity (3 params, nested file object, output schema, sibling tool), the description is complete: it covers source selection, constraints, return values, limitations, and user communication. The output schema exists, so the description needn't re-explain return structure, but it still summarizes the key fields. Nothing an agent needs to call it correctly is missing.

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 description coverage is 100%, so the baseline is 3. The description adds value by clarifying the 'never both' exclusivity rule, the direct-public-URL requirement, the 25 MB attachment limit, and the maxMessages default/range semantics. It doesn't add much beyond the schema for the file object's fields, but the added context on source exclusivity and limits justifies a 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?

The description states a specific verb ('validates') and resource ('one EPUB against the EPUB 2/3 specification'), and explicitly distinguishes itself from the sibling tool by naming the alternative (ebook_compare) and the one-file scope. It also enumerates the exact verdict fields, making the tool's purpose unmistakable.

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

Usage Guidelines5/5

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

The description gives explicit when-to-use guidance ('Use for one-file readiness and diagnosis') and clear exclusions ('never renders the book, judges accessibility, or guarantees any store will accept it'). It also states the one-source rule (url or file attachment, never both) and the 110-second deadline with a user-facing warning, leaving no ambiguity about invocation context.

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.

Resources