Skip to main content
Glama
ZehuiTIAN

calibre-mcp

by ZehuiTIAN

ocr_scanned_books

Convert scanned-PDF books in a Calibre library to searchable text in resumable batches, skipping completed ones. Repeat to process the whole library, optionally generating re-typeset EPUBs.

Instructions

OCR all scanned-PDF books in the library, in resumable batches.

Detects scanned books, skips any that already have OCR output cached, and runs the full ocr_book pipeline (OCR → index → optional re-typeset EPUB) on up to limit remaining books. Repeat the call to work through the whole library; per-batch caching makes interruptions safe.

Args: limit: Maximum books to OCR in this call (1-100, default 10). typeset: Also build re-typeset EPUBs with pandoc (default True). import_format: Attach the EPUBs to book records (default True).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
typesetNo
import_formatNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations provided, the description carries the full disclosure burden and does it well: it skips books with cached OCR output, runs the full pipeline, attaches EPUBs when import_format is set, and is resumable. It does omit failure-mode or side-effect detail, but for a batch tool this is substantial.

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

Conciseness5/5

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

The description opens with a one-sentence purpose, follows with a compact behavior paragraph, and ends with a terse Args list. Every sentence adds necessary information and there is no filler or repetition.

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?

For a three-parameter batch tool with an output schema present, the description covers the what, the how (repeat calls), the safety of interruption, and detailed parameter semantics. The only minor omission is an explicit comparison to the single-book sibling, but nothing needed for correct invocation is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description fully compensates by documenting all three parameters with meaningful behavior, defaults, and constraints. For example, 'limit' gets a range and default, 'typeset' explains the pandoc EPUB step, and 'import_format' clarifies attaching to book records.

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 action ('OCR'), a clear resource ('all scanned-PDF books in the library'), and a key mode ('resumable batches'). It also distinguishes itself from siblings by mentioning it runs the full ocr_book pipeline rather than just detection or a single book.

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 description explains the intended invocation pattern: call repeatedly to work through the library, and per-batch caching makes interruptions safe. It does not explicitly contrast with single-book ocr_book or detect_scanned_books, but the batch scope and repeat-call guidance are clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ZehuiTIAN/calibre-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server