Skip to main content
Glama
calibre-mcp

calibre-mcp

by caelum29

Extract ISBN from book text

calibre_extract_isbn
Read-onlyIdempotent

Scans a book's text offline for a checksum-valid ISBN and merges it into identifiers:isbn; preview with apply=false, then apply when writes are enabled.

Instructions

Offline scan of a book's own text for a checksum-valid ISBN → sets identifiers:isbn (no network; for online lookup use calibre_recover_metadata). Preview-first: apply=false reports only, merges into existing identifiers. Previews work without writes; applying needs CALIBRE_MCP_ENABLE_WRITE.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "calibre_extract_isbn"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo
applyNo
bookIdNo
libraryNo

Output Schema

NameRequiredDescriptionDefault
isbnNo
bookIdNo
appliedNo
changedNo
currentIsbnNo
writeEnabledNofalse on a preview in a session with writes disabled: applying it will be refused (write_disabled)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.13.0

TDQS

A3.8/5.0
Behavior2/5

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

The description is genuinely informative about behavior beyond the annotations: preview-first semantics, that identifiers are merged rather than replaced, and that applying requires the CALIBRE_MCP_ENABLE_WRITE env var. However, it describes a persisting mutation ("sets identifiers:isbn") while annotations declare readOnlyHint=true, which is a direct conflict an agent could act on incorrectly.

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?

Very tight, front-loaded and information-dense: capability, effect, alternative, mode, and prerequisite in three short clauses. The arrow notation and unexpanded "identifiers:isbn" field syntax cost a bit of readability but no sentence is filler.

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?

An output schema exists, so return values need not be explained, and the write gating is covered. Still missing for a tool with ambiguous id/bookId parameters: what happens when no checksum-valid ISBN is found, and how id, bookId, and library interact.

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 0%, so the description must carry parameter meaning. It explains apply well (false = report only, true = persist) but says nothing about id versus bookId (an unexplained pair of similarly named identifiers) or what library selects. One of four parameters is effectively documented.

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?

States a specific verb and resource ("Offline scan of a book's own text for a checksum-valid ISBN") plus the concrete effect ("sets identifiers:isbn"), and explicitly separates itself from calibre_recover_metadata. An agent can tell offline-text extraction from online lookup without opening either schema.

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?

Gives an explicit alternative and the condition that selects it ("no network; for online lookup use calibre_recover_metadata"), plus the default mode (apply=false = report only) and the prerequisite for the write path (CALIBRE_MCP_ENABLE_WRITE). When-to-use, when-not, and gating are all present.

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