Skip to main content
Glama
ni-c

audiobookshelf-mcp

by ni-c

List libraries

list_libraries
Read-onlyIdempotent

List accessible Audiobookshelf libraries with id, name, and media type. Get a library id to use with other library tools.

Instructions

Lists the Audiobookshelf libraries the API key’s user can access, with their id, name and media type (book or podcast). Start here — every other library tool needs a library id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
detailNo"compact" (default) returns a projection with the fields that matter for browsing; "full" returns the raw Audiobookshelf object including audio files, tracks and chapters, which is very large.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
librariesYes
truncatedNoPresent only when the answer was shortened to fit the budget.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.4.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": true,
      +  "properties": {
      +    "libraries": {
      +      "items": {
      +        "additionalProperties": true,
      +        "properties": {},
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "truncated": {
      +      "additionalProperties": false,
      +      "description": "Present only when the answer was shortened to fit the budget.",
      +      "properties": {
      +        "dropped_entries": {
      +          "additionalProperties": {
      +            "type": "number"
      +          },
      +          "propertyNames": {
      +            "type": "string"
      +          },
      +          "type": "object"
      +        },
      +        "follow_up": {
      +          "type": "string"
      +        },
      +        "reason": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "reason",
      +        "dropped_entries",
      +        "follow_up"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "libraries"
      +  ],
      +  "type": "object"
      +}
  2. First observedv0.1.1

TDQS

A4.4/5.0
Behavior4/5

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

The description states it 'lists' libraries, which is consistent with the readOnlyHint and idempotentHint annotations. It adds a note about being the starting point, reinforcing that it has no side effects. Given the annotations already cover the read-only nature, the description adds minimal extra behavioral context, but it is sufficient and non-contradictory.

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 concise, consisting of two sentences that are directly to the point. It includes the essential information (what is listed, scope, and start-here guidance) without any unnecessary fluff or repetition.

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 provides sufficient context: it explains what the tool returns (libraries with id, name, media type) and how it fits into the broader workflow (start here). It does not describe the output schema, but the existence of an output schema is implied and the key information is covered. Minor gap: it doesn't mention sorting or pagination, but these are not critical for this listing tool.

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?

The only parameter, 'detail', is fully documented in the schema with enum values and descriptions. The description text does not add any additional meaning beyond what the schema already provides, so a baseline score of 3 is appropriate since schema coverage is 100%.

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 states the verb 'lists', the resource 'libraries', and the scope 'the API key's user', along with the fields returned (id, name, media type). It is unambiguous and distinguishes this tool from others that operate on specific libraries.

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?

The description explicitly says 'Start here — every other library tool needs a library id.' This gives clear guidance on when to use this tool (as an initial step) and implicitly when not to use it (when you already have a library id, use more specific tools). This is excellent usage direction.

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