Skip to main content
Glama
xjtlu-library-mcp

xjtlu-library-mcp

by seally-web

search_books

Search XJTLU Library print and e-book holdings by keyword, title, author, subject, or ISBN to retrieve call numbers, copy counts, and availability.

Instructions

检索西交利物浦大学馆藏纸本 / 电子书(汇文 OPAC)。

Args: keyword: 检索词,如 "measure theory"。 field: title / author / subject / isbn / any,默认按题名。 page: 页码,从 1 开始。 limit: 每页条数,1-50,默认 20。

返回每题名、索书号(如 QA312./B64/7/EN)、馆藏复本数、可借数、marc_no(用于 book_detail)。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "keyword": "<keyword>"
    },
    "name": "search_books"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo
fieldNotitle
limitNo
keywordYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.3

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden, and it does disclose the payload shape (per-title, call number like QA312./B64/7/EN, copy count, available count, marc_no) plus default and range behavior for paging. It does not mention authentication, rate limits, or what an empty result looks like, which are the remaining behavioral gaps.

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?

The purpose is front-loaded in one line, then parameters and return values in a compact Args/return block. Every line adds information an agent needs; nothing is repeated from the schema titles.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, so the description supplies the return fields itself, and it covers all four parameters despite 0% schema coverage. For a four-parameter read-only search tool, an agent has everything needed to call it and to chain into book_detail.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and opaque titles like 'Field' and 'Limit' add nothing, but the description compensates fully: it gives a keyword example, enumerates the accepted field values (title/author/subject/isbn/any) with the default, states page is 1-based, and bounds limit to 1-50 with a default of 20.

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 states a specific verb and resource — retrieving XJTLU library print/ebook holdings via the Huiwen OPAC — and the scope (books, both physical and electronic) is explicit enough to separate it from article or exam searching. It also names book_detail as the consumer of the returned marc_no, giving a concrete anchor to a sibling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It makes the use case clear (bibliographic lookup by keyword with selectable field) and explicitly signals the follow-up path: marc_no is '用于 book_detail'. What is missing is an explicit exclusion — it never says to use search_articles for journal content or when not to use this tool.

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