Skip to main content
Glama

search_books

Read-only

Search the public SansFiction catalog by title, author, series, mood, or ISBN to find books and obtain their unique IDs for use with other tools.

Instructions

Search the public SansFiction catalog (no auth). Returns JSON { query, searchType, count, books[] }; each book includes id (the catalog UUID used as book_id by every other tool), slug, title, and authors. When to use: your entry point for discovery — resolve a title/author/ISBN into a book_id. Use search_my_library instead to search only the signed-in user's own shelves; use get_book once you already have an id/slug and want full details.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of books to return. Range 1–50. Default 20.
queryYesSearch text. With searchType 'isbn' (or an 'isbn:' prefix) pass a 10- or 13-digit ISBN.
searchTypeNoWhat `query` matches against. 'all' (default) = title/general full-text; 'author' = contributor name; 'series' = series name; 'mood' = a mood term such as cozy or dark; 'isbn' = exact ISBN-10/13 lookup.
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint. The description adds valuable behavioral context: 'no auth', the exact return JSON structure (query, searchType, count, books[]), and crucially explains that the returned 'id' is the catalog UUID used as 'book_id' by every other tool. This connects the tool's output to the broader API. No contradictions with annotations.

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?

Three sentences accomplish everything: (1) purpose + return shape, (2) primary use case, (3) sibling differentiation. Every sentence delivers unique, actionable information. No filler.

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?

Given the tool's complexity (3 params, rich schema, no output schema), the description covers the key gaps: return format, the critical linking of 'id' to other tools, and sibling distinction. It does not mention pagination beyond the limit parameter, but the schema already covers that. The 'openWorldHint' annotation handles result variability. Overall, very complete for a search 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?

Schema description coverage is 100% – all three parameters have clear descriptions including constraints and defaults. The description does not repeat param details, which is appropriate. It adds mild value by noting the relationship between searchType and query (e.g., ISBN prefix), but this is already implied by the schema. Baseline 3 is correct.

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 opens with 'Search the public SansFiction catalog (no auth)', clearly stating the verb (search), resource (catalog), and scope (public). It uniquely identifies the tool's purpose and distinguishes it from siblings by referencing 'search_my_library' and 'get_book'.

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?

Explicitly states the primary use case: 'your entry point for discovery — resolve a title/author/ISBN into a book_id'. It then provides clear when-not-to-use guidance by naming 'search_my_library' for signed-in user shelves and 'get_book' for full details after having an id/slug.

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

Install Server

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/fgbytes/sansfiction-mcp'

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