Skip to main content
Glama
calibre-mcp

calibre-mcp

by caelum29

Bulk update book metadata

calibre_bulk_update
Read-only

Apply the same metadata changes to a selected set of Calibre books and preview the per-book diff before writing. Use ids, a search query, or a filter to target books.

Instructions

Apply the same metadata changes (tags, series, publisher, etc.) to a set of books selected by ids, a search query, or filter (a bundle name). Preview-first: returns the per-book diff without writing unless preview is set false. A book set is required (never all books). A list in changes replaces the whole list; to add or remove tags while keeping the rest, use tags_add / tags_remove (merged per book, case-insensitive, not together with changes.tags). changes.identifiers merges per book by scheme (listed schemes set, others kept, null removes one). 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_bulk_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsNo
queryNo
filterNo
changesNo
libraryNo
previewNo
tags_addNo
tags_removeNo

Output Schema

NameRequiredDescriptionDefault
booksNo
failedNo
appliedNo
matchedNo
previewNo
retryIdsNo
unchangedNo
notAttemptedNo
writeEnabledNofalse on a preview in a session with writes disabled: applying it will be refused (write_disabled)
confirmedByReReadNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.13.0

TDQS

A3.9/5.0
Behavior1/5

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

The description declares the tool writes metadata ("Apply ... without writing unless preview is set false", "applying needs CALIBRE_MCP_ENABLE_WRITE"), which directly contradicts the readOnlyHint=true annotation. The behavioral detail itself is rich, but a contradiction of this sort is the most dangerous failure mode for an agent that trusts 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?

Front-loaded with the operation and the preview-first guarantee, then the selection constraint, then per-field semantics. Dense but every sentence carries information; slightly compressed phrasing ("listed schemes set, others kept") costs a little readability.

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 an 8-parameter nested mutation tool this covers scope, preview behavior, write gating, and merge semantics for the tricky fields; an output schema exists so return values need no explanation. Missing only which selection inputs are mutually exclusive and what `library` does.

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?

With 0% schema description coverage across 8 parameters and nested objects, the description carries the load well: it explains selection inputs, list-replacement semantics for changes, per-book merge behavior for identifiers (null removes a scheme), and the tags_add/tags_remove merge rule. Gaps remain: the `library` parameter is never mentioned and the interaction/precedence between ids, query, and filter is unspecified.

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 ("Apply the same metadata changes ... to a set of books") plus the three selection modes (ids, search query, filter/bundle). It is immediately distinguishable from siblings like calibre_get_book or calibre_search, which read rather than bulk-mutate.

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?

Explicit when-to-use routing: preview-first by default, "A book set is required (never all books)", and the precise choice between changes.tags and tags_add/tags_remove ("merged per book, case-insensitive, not together with changes.tags"). It also states the prerequisite CALIBRE_MCP_ENABLE_WRITE for applying.

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