Skip to main content
Glama
calibre-mcp

calibre-mcp

by caelum29

Remove books

calibre_remove_book
Read-onlyIdempotent

Remove books by ID from a Calibre library, sending them to Calibre's Trash for recovery. Preview removals first with a dry run, then re-run with confirm=true to apply when writes are enabled.

Instructions

Remove books (ids) from the library. Removed books go to Calibre's Trash and can be restored from the Calibre GUI, so this is recoverable. Two-step: the first call is a dry-run listing what would be removed; re-run with confirm=true to proceed. Previews work without writes; applying needs CALIBRE_MCP_ENABLE_WRITE.

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": {
      "ids": "<ids>"
    },
    "name": "calibre_remove_book"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYes
confirmNo
libraryNo

Output Schema

NameRequiredDescriptionDefault
deletedNo
indexNoteNo
removedIdsNo
notFoundIdsNo
wouldRemoveNo
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

A4.2/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing that removal is recoverable via Calibre's Trash, that the default invocation performs no writes, and that writes are gated behind an environment variable. The description reconciles rather than contradicts readOnlyHint=true, but it never states what happens if the env var is absent (error vs. silent preview) or how partially-missing ids are handled.

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?

Three short sentences, front-loaded with the action and followed by the safety and workflow facts in descending priority. Only clutter is the parenthetical '(ids)' restating the parameter name.

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 destructive-by-opt-in tool with an output schema available, the description covers the essentials an agent needs: recoverability, the two-step confirmation protocol, and the write gate. Remaining gaps (library scoping, error mode) are minor against a tool whose annotations and output schema already carry the rest.

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 the load. It explains 'ids' and adds real meaning for 'confirm' (default is a dry-run, set true to apply), but 'library' is never mentioned, leaving one of three parameters undocumented anywhere.

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 ('Remove books (ids) from the library'), names the required input, and the destructive intent is immediately obvious. No sibling tool in the list performs removal, so there is nothing to disambiguate against.

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?

Gives a concrete operating procedure: first call is a dry-run preview, re-run with confirm=true to actually remove, and applying requires CALIBRE_MCP_ENABLE_WRITE. That is strong when/how guidance, though it gives no explicit exclusions (e.g., when to prefer archiving/merging over removal).

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