mcp-library-search
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
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
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| search_booksA | 按关键字搜索城市图书馆的馆藏图书,返回分页列表。 已接入城市:shanghai(上海,全市 900+ 网点,含地铁站 24 小时自助机);其他城市待接入。 keyword 可以是书名、ISBN、作者名等。每条结果带 book_id,是后续查询的凭据。 total_results 为 null 表示数据源不提供总数:用 page 继续翻页, 直到 has_next 为 false 或 books 为空。 参数: keyword:书名、ISBN、作者等检索词 city:城市标识,默认 "shanghai" page:页码,默认 1 limit:每页条数,默认 20 |
| find_book_availabilityA | 查询指定图书在各分馆的馆藏与可借状态,可借的馆排前面。 已借出的馆藏可能带 due_date(预计归还时间,YYYY-MM-DD),仅在 only_available=False 时出现;数据源查不到时为空串。 参数: book_id:search_books 返回的图书 ID,需与 search_books 使用同一 city city:城市标识,默认 "shanghai" only_available:True(默认)只返回当前可借的馆;False 返回全部馆藏 |
| get_book_detailA | 查询指定图书的完整介绍:书名、作者、出版社、出版年、ISBN、索书号、内容简介。 上海数据源没有独立简介区块,内容简介取自书目"附注"字段,可能带有 "新版本册内容:"之类的原生前缀。 参数: book_id:search_books 返回的图书 ID,需与 search_books 使用同一 city city:城市标识,默认 "shanghai" |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 3 tools
The three tools have clearly distinct purposes: search_books for keyword search, find_book_availability for branch-level availability, and get_book_detail for bibliographic details. Despite overlap in parameters (book_id, city), the descriptions and return types make the boundaries unambiguous.
All tool names use snake_case with a verb_noun pattern (search_books, find_book_availability, get_book_detail). The slight variation in verbs (search/find/get) is natural and consistent, not confusing.
Three tools is slightly lean but well-scoped for a library search server. Each tool earns its place, and there is no bloat. A few more tools (e.g., branch listing) could add value without being excessive.
The surface covers the core search lifecycle: search, availability, and detail. Minor gaps exist (e.g., no way to list supported cities or browse branches), but these are workaroundable and not critical for the stated purpose.