MCP server for searching Singapore's National Library Board (NLB) catalogue — search books, check branch availability, find kids' books by age, and get AI similar-book recommendations.
Four well-named tools with clear, actionable descriptions (avg 156 chars). All tools have complete Zod schemas with type definitions and parameter descriptions. Naming follows verb_noun pattern (search_books, check_availability, find_kids_books, recommend_similar). Schemas are properly constrained with enums, min/max bounds, and optional flags. Output is text-formatted rather than structured JSON, which reduces downstream composability. Error handling wraps API errors with readable messages via the `safe()` helper. No tool annotations (readOnlyHint, destructiveHint) present. All tools are READ_ONLY but this is not declared in metadata.
Check which NLB library branches currently have a specific book on the shelf, with shelf location and call number. Use the BRN returned by search_books. This is what to call before heading to the library.
Find children's books for a given age band, optionally on a topic. A shortcut for parents that applies NLB's juvenile/early-literacy shelf filters automatically. Age bands: '0-3' (babies & toddlers), '4-6' (preschool), '7-12' (primary school).
Given a book a reader enjoyed (by BRN or title), recommend semantically similar titles from the NLB catalogue. Pulls the seed book's subjects, gathers candidates, and re-ranks them using local AI sentence-embeddings (cosine similarity). Great for 'my child loved X, what's next?'.
Search the Singapore NLB catalogue for physical library items by title, author, keyword, ISBN, or subject. Returns matching titles with their BRN (use it with check_availability). Supports filters for material type, language, fiction/non-fiction and sorting.
Output format is plain text, not structured JSON. Responses like 'Found 5 title(s), showing 3: • [BRN 123] Title, Author · Year · Format · Language' require LLM parsing. Downstream tools cannot reliably extract BRN, title, or availability status without fragile text parsing.
No tool annotations (readOnlyHint, destructiveHint, idempotentHint) declared. All four tools are READ_ONLY and idempotent, but this is not signaled to the client. Clients cannot optimize caching or retry logic without explicit metadata.
recommend_similar accepts either 'brn' or 'title' but does not document mutual exclusivity or precedence. If both are provided, behavior is undefined. Parameter relationship is undocumented.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 63 | 2026-07-28+ | v2 |
search_books requires at least one of {query, title, author, subject, isbn} but this constraint is enforced at runtime with a text error, not in the schema. Schema validation happens inside the handler, not at the MCP layer.
No pagination support. search_books and find_kids_books return up to 50 results but do not expose next_cursor or offset for continuation. Large result sets cannot be iterated.