Skip to main content
Glama
Terobyte

librarian

by Terobyte

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LIB_HOMENoPath to the library root directory (default ./library)./library

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_booksA

List of all books in the library: id, author, title, chapter count, token count, quality status.

list_chaptersB

Table of contents for a book by its id: chapter number, title, token count, and a short summary for each chapter.

findA

Full-text search across chapters and book titles/authors in the whole library (bm25 ranking, snippets, RU/EN stemming). The book_id parameter restricts the search to one book.

get_chaptersA

Chapter text of a book: by chapter numbers (spec, e.g. "1-3,5") or by token budget (budget). If neither spec nor budget is given, the default budget of 12000 tokens is used. Passing both parameters at once is an error. If even the first chapter doesn't fit the budget, an empty text with an explanation in message is returned instead of an error — retry with a larger budget or use spec.

book_infoC

Metadata and quality metrics for a book: book, metrics, subscores, score, hard_triggers — the same projection as lib info.

verify_quoteA

Verify a quote against the library: an exact/close/distorted/not_found verdict, the book/chapter location, similarity, a passage of surrounding text, and a word-level diff against the source. Provide book_id to check one specific book (full scan, no FTS5 needed); omit it to search the whole library via FTS5 candidates. Use this whenever you quote a book to the user.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/Terobyte/librarian-cli'

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