Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GRIMMORY_URLYesBase URL of the Grimmory instance, e.g. https://books.example.com
PANGOLIN_TOKENNoOnly if Grimmory sits behind Pangolin. The part after the dot in the Pangolin shareable link access token (?p_token=<id>.<token>); sent as the P-Access-Token header
GRIMMORY_PASSWORDYesPassword for the Grimmory user
GRIMMORY_USERNAMEYesGrimmory username (not email; Grimmory logs in by username)
PANGOLIN_TOKEN_IDNoOnly if Grimmory sits behind Pangolin. The part before the dot in the Pangolin shareable link access token (?p_token=<id>.<token>); sent as the P-Access-Token-Id header

Instructions

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

Grimmory is the user's self-hosted ebook/comic/audiobook library. Grimmory calls genres categories on a single book and genres in bulk edits. Before inventing a new tag or genre, call list_facets and reuse an existing spelling. Bulk edits are two-step: call bulk_edit_metadata without confirm, show the user the preview, and only call again with confirm=True after they agree. Locked fields are refused on purpose — never try to work around a lock. There are no delete tools; say so if asked to delete.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

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

Tools

Functions exposed to the LLM to take actions

NameDescription
search_booksA

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.

list_facetsA

Existing values per facet (authors, genres, tags, moods, series, publishers, languages, shelves...).

Use this to reuse existing tag/genre spellings instead of inventing near-duplicates.

get_bookC

One book's metadata, shelves and locked fields.

list_shelvesB

Regular shelves visible to the bot user (id, name, bookCount, public).

update_metadataA

Change metadata fields on one book. Only the fields in changes are touched.

changes: any of title, subtitle, publisher, publishedDate (YYYY-MM-DD), description, seriesName, seriesNumber, seriesTotal, isbn13, isbn10, pageCount, language, narrator, authors, categories (= genres), moods, tags (lists of strings). merge_lists: True adds list values to what is there; False replaces the list. Locked fields are refused. Nothing can be cleared with this tool. Returns the before/after values of the changed fields.

bulk_edit_metadataA

Set tags/genres/moods/authors/series/publisher/language on many books at once.

Two-step: without confirm=True this only returns a per-book preview (nothing is written). Show the preview to the user, then call again with identical arguments and confirm=True. merge: True adds tags/genres/moods to existing ones; False replaces them. Authors always replace. Refuses the whole batch if any targeted field is locked on any book.

create_shelfB

Create a regular shelf for the bot user. icon is a Lucide icon name. Refuses duplicate names.

assign_shelvesB

Put books on and/or take them off shelves (by shelf id). Never deletes books or shelves.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.5/5.0

Scored across 8 tools

Disambiguation4/5

Most tools are clearly distinct by resource and action: search_books reads, get_book fetches one record, list_facets/list_shelves enumerate, and create_shelf/assign_shelves target shelves. The only potential overlap is bulk_edit_metadata vs update_metadata, but the descriptions sharply separate them (many books with preview/confirm vs one book with before/after), so confusion is unlikely.

Naming Consistency5/5

All eight names are snake_case verb_noun pairs following a single convention: search_books, get_book, create_shelf, list_shelves, list_facets, update_metadata, bulk_edit_metadata, assign_shelves. No camelCase or vague-verb deviations.

Tool Count5/5

Eight tools is well within the comfortable 3-15 range and each covers a distinct operation (query, inspect, facets, shelf creation/listing, per-book edit, bulk edit, shelf assignment). Nothing feels redundant or padded for the scope of a book-library server.

Completeness3/5

Read and update paths are solid, but shelf lifecycle is incomplete: shelves can be created and listed but never renamed, made private/public, or deleted. Metadata also cannot be cleared at all ('Nothing can be cleared with this tool'), which leaves agents with dead ends for common maintenance tasks.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues