Skip to main content
Glama

komga_libraries

Destructive

Manage self-hosted Komga libraries: retrieve, create, update, delete, scan, analyze, refresh metadata, and empty trash; writes require confirm=true.

Instructions

komga_libraries covers the libraries toolset (9 operations). Auth is the X-API-Key header, or HTTP basic auth from KOMGA_USERNAME and KOMGA_PASSWORD. Self-hosted Komga only. action help with target returns one action's parameters. Writes need confirm set to the boolean true and KOMGA_ALLOW_WRITES=true. Omit confirm for a dry-run preview that sends nothing. Destructive, credential, or exposure actions add an extra warning in the preview and here: delete, scan, analyze, refresh, trash empty, user or role changes, API key create or revoke, password change, settings, session, and claim. Actions: delete, get, get_library_id, patch, post, post_analyze, post_empty_trash, post_metadata_refresh, post_scan.

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON body for the Komga operation. Secrets are redacted in output.
queryNoOpenAPI query parameters.
actionYesKomga operation to call, or help.
paramsNoOpenAPI path parameters, such as seriesId.
targetNoWith action help, the action whose parameters to describe.
confirmNoSet to the boolean true to execute the write. Omit this field for a dry-run preview. false and the string true are rejected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description adds substantial context on top: the auth mechanism (X-API-Key or basic auth), the KOMGA_ALLOW_WRITES gate, the confirm=true requirement, and that omitting confirm yields a dry-run that 'sends nothing.' It further enumerates which actions trigger extra warnings (delete, scan, trash empty, API key revoke, password change), which is precisely the behavioral detail an agent needs before a destructive call.

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 purpose, then auth, then write-safety, which is the right priority order. It is dense but nearly every sentence carries non-obvious information; the only waste is the destructive-action list partially duplicating the action enumeration that follows it.

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 a six-parameter, nested-object, multi-action mega-tool with no output schema, the description covers auth, write gating, dry-run behavior, destructive-action warnings, and secret redaction. What remains thin is per-action semantics for the generic verbs, though the documented 'help' action provides a discovery path for that.

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 100%, so body, query, params, action, target and confirm are already documented, including the const:true constraint on confirm. The description's only added meaning is the help/target discovery workflow and the dry-run consequence of omitting confirm, both of which the schema largely restates; baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the resource ('libraries toolset') and enumerates all ten actions, so an agent knows exactly what surface it covers. It stops short of explaining what the generic verbs (delete, get, patch, post) operate on, and never contrasts itself with siblings like komga_series or komga_books, relying on the resource name alone to differentiate.

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?

Strong operational guidance: 'action help with target returns one action's parameters' tells the agent how to self-discover per-action schemas, and 'Self-hosted Komga only' sets a clear applicability constraint. It does not state when to choose this toolset over a sibling (e.g. libraries vs. series), so the routing decision is left implicit.

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