Skip to main content
Glama
xjtlu-library-mcp

xjtlu-library-mcp

by seally-web

exam_search

Search past exam papers, FYP projects, and degree theses by course code, title, or year to retrieve record IDs for detail or download. Requires an active exam session.

Instructions

检索往年试卷 / FYP / 学位论文(需要先 save_exam_session)。

field 取值(试卷库):PaperCode(课程代码,如 MTH002、ACC309)、PaperTitle、Year。 exact=True 为精确匹配,默认包含匹配。返回 record_id,交给 exam_detail / exam_download。 一次 20 条,分页用 page。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "exam_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo
exactNo
fieldNoPaperCode
limitNo
queryNo
db_codeNoEXAMXJTLU

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.3

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the disclosure burden and does a fair job: it declares the session prerequisite, the match semantics (exact=True is exact, default is substring), the 20-records-per-page return size, pagination via page, and that results are identifiers rather than full content. It omits failure behavior (e.g., what happens without a session) and any rate/volume limits.

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?

Telegraphic but well-ordered: purpose first, then prerequisite already front-loaded in parentheses, then field values, matching mode, return handoff, and pagination. No sentence is redundant, and each line maps to a distinct decision the caller has to make.

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

Completeness3/5

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

For a 6-parameter tool with no annotations and no output schema, the description covers the prerequisite, return shape (record_id), and pagination well, but leaves db_code and limit undocumented and does not enumerate field values for the non-paper databases it advertises. That is a meaningful gap an agent would hit on first use.

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

Parameters3/5

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

Schema description coverage is 0%, so the description must compensate, and it does so only partially. It documents field with three concrete values plus examples, explains exact vs. contains, and explains page; but db_code (default EXAMXJTLU) and limit are never mentioned, and field values are explicitly scoped to '试卷库' with no listing given for the FYP/thesis databases the tool also claims to cover.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a concrete verb+resource: retrieve past exam papers / FYP / degree theses. The resource scope is specific enough to separate it from search_articles and search_books, but the description never explicitly contrasts itself with those siblings, leaving the distinction to be inferred from the noun alone.

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 states a hard prerequisite (save_exam_session must be called first) and routes the returned record_id onward to exam_detail / exam_download, which is genuinely actionable. It does not say when to choose this over the other search_* tools or what to do when zero results come back, so it stops short of full when/when-not guidance.

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