Skip to main content
Glama

search_books

Read-only

Search a self-hosted ebook, comic, and audiobook library by title, author, genre, tag, ISBN, or ASIN, filter with facets, and page through compact book records.

Instructions

Search the library. Returns compact book records, 20 per page.

query: free text over title, series, author, genre, tag, ISBN, ASIN. facets: "key:value" filters, e.g. ["genre:Romance", "author:Holly Jackson", "shelf_status:unshelved", "tag:warhammer", "series:The Naturals", "language:nl", "file_type:EPUB"]. See list_facets. facet_logic: "and" | "or" | "or not". sort: comma-separated field names, "-" prefix for descending, e.g. "seriesName,seriesNumber" or "-addedOn". cursor: pass nextCursor from a previous result to get the next page.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_books"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNo
queryNo
cursorNo
facetsNo
facet_logicNoand

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare a safe read-only, closed-world operation, so the bar is lower. The description still adds real behavioral context: fixed page size of 20 and cursor-based pagination via nextCursor from a previous result, which is not derivable from the annotations. It does not discuss result caps, rate limits, or error behavior.

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 a one-line summary, then one line per parameter in a scannable labeled format. Dense but every line earns its place; the only mild cost is length for a five-parameter tool.

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?

An output schema exists so return values need not be explained, and pagination plus every input parameter are covered with syntax and examples. Nothing an agent needs to invoke it correctly is missing.

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

Parameters5/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 all parameter meaning and it does: query fields searched, facet 'key:value' syntax with concrete examples, the three facet_logic literals, sort comma-separated with '-' for descending, and cursor round-tripping. This is well beyond what the bare schema provides.

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 first sentence gives a specific verb and resource ('search the library') plus the shape of the result ('compact book records, 20 per page'), which already differentiates it from a detail-fetch like get_book. It does not explicitly name an alternative search tool, so it falls just short of a 5.

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 description is rich on how to drive the tool (query scope, facet syntax, facet_logic values, sort syntax, cursor reuse) but never states when to prefer it over siblings such as list_facets or get_book. The pointer to list_facets for valid facet values is the one explicit routing hint.

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