Skip to main content
Glama
rollecode

Audiobookshelf MCP server

by rollecode

get_libraries_by_id_stats

Read-onlyIdempotent

Retrieve detailed statistics for a specific library using its ID, including counts and aggregate data for books, podcasts, and media items.

Instructions

Get libraries stats.

GET /api/libraries/{id}/stats

Args: id: Path parameter.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.4/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, which cover safety. The description adds only the HTTP method and path, which is minimal and does not disclose any additional behavior (e.g., return format, filtering, or side effects). It repeats the tool name essentially.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is very short, but it is under-specified rather than concise. The structure (endpoint line and args line) is logical, but the content is nearly empty and does not earn its place. It could be shortened to just the first line without losing anything.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with one parameter and an output schema, the description is inadequate. It omits what stats are returned, any prerequisites, or how the id should be used. The output schema exists but is not referenced, and the description leaves too much to inference for an agent to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/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 compensate. It only states 'id: Path parameter,' which adds no semantic value beyond the schema's type and required flag. It does not clarify that the id is the library ID or provide any format or constraints.

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 states a specific verb and resource: 'Get libraries stats.' This clearly identifies the action and target, and it is distinct from sibling tools like get_libraries_by_id_items or get_libraries_by_id_search. However, it does not elaborate on what 'stats' include or how they are structured, leaving some ambiguity about the exact scope.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus the many other get_libraries_by_id_* siblings. No mention of use cases, alternatives, or conditions. The bare endpoint line provides no contextual routing.

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

Deploy Server

Other Tools