Skip to main content
Glama

komga_libraries

Manage Komga libraries by listing, creating, updating, deleting, scanning, analyzing, refreshing metadata, and emptying trash for comic, manga, and ebook collections.

Instructions

komga libraries operations on Komga. Pass operation and an arguments dict matching that operation's parameters.

  • analyze_library(library_id) — Analyze all books in a library. Requires ADMIN.

  • create_library(library) — Create a library. Requires the Komga ADMIN role.

  • delete_library(library_id) — Delete a library without deleting its files. Requires ADMIN.

  • empty_library_trash(library_id) — Permanently empty a library's trash. Requires ADMIN.

  • get_library(library_id) — Get one library by ID.

  • list_libraries() — List libraries visible to the authenticated Komga user.

  • refresh_library_metadata(library_id) — Refresh embedded metadata for a library. Requires ADMIN.

  • scan_library(library_id, deep=False) — Scan a library for new or changed files. Requires ADMIN.

  • update_library(library_id, patch) — Partially update a library. Requires the Komga ADMIN role.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
argumentsNo
operationYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Install Server

TDQS

A4/5.0
Behavior4/5

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

There are no annotations, so the description bears the burden of providing behavioral context. It does well: 'Delete a library without deleting its files', 'Permanently empty a library's trash', and 'Scan a library for new or changed files' disclose side effects and permissions. It lacks some detail about update/analyze behaviors, but the central safety-relevant behaviors are included.

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 is efficiently structured: a short usage instruction followed by a bulleted list of operations. Every line conveys a distinct purpose and permission note, with no redundant filler. The front-loaded dispatch instruction helps an agent quickly understand how to call the tool.

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?

The description fully lists all operations, their required roles, and the main effects, which is strong for a dispatcher with nine operations. The output schema provides return-value coverage. However, the incomplete shape of the argument dictionaries for `create_library` and `update_library` means an agent could not fully construct a correct call from description alone.

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?

With 0% schema coverage, the description needs to compensate. It provides function signatures like `scan_library(library_id, deep=False)` and names `library`, `library_id`, and `patch`, which is helpful. Yet it never explains the structure of the `library` object, the contents of `patch`, or the meaning of `deep`, so the actual argument semantics remain under-specified.

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 clearly enumerates nine specific library operations with explicit verbs and resources, such as 'analyze_library', 'delete_library', and 'update_library'. Each line states the exact action, so the tool's purpose as a dispatcher for Komga library operations is unmistakable and distinct from sibling tools focused on other resources.

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

Usage Guidelines3/5

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

The operation list and general 'Komga libraries operations' phrasing imply when the tool should be used, and the ADMIN requirements help agents avoid unprivileged calls. However, it does not explicitly mention the alternative sibling tools or state when to prefer this tool over them, so usage guidance is implied rather than precise.

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

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/arr-mcps/komga-mcp'

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