Skip to main content
Glama
xjtlu-library-mcp

xjtlu-library-mcp

by seally-web

exam_download

Downloads past exam papers, final-year projects, and dissertations as local PDFs into ~/.xjtlu-library-mcp/downloads/ by record ID; restricted records return no_permission.

Instructions

把一份往年试卷 / FYP / 学位论文存成本地 PDF,落在 ~/.xjtlu-library-mcp/downloads/。

权限说明:只要能浏览(hasBrowserRight)就能取到,走 BrowserUrl 的签名路径; hasDownloadRight 是另一回事,用于直链,不影响这里。若返回 no_permission, 表示这份记录在保密期内(看 security_date)或你的账号未被授权。

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": {
      "record_id": "<record_id>"
    },
    "name": "exam_download"
  }
}

Input Schema

NameRequiredDescriptionDefault
db_codeNoEXAMXJTLU
filenameNo
record_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.3

TDQS

B3.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses the authorization model (hasBrowserRight via the BrowserUrl signed path), clarifies a commonly confused permission (hasDownloadRight does not apply), and explains the no_permission failure mode and its two causes including the security_date field. It omits whether existing files are overwritten, what the response looks like on success, and whether repeated calls have side effects.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short paragraphs: the action and output location first, then the permission caveats. Front-loaded and free of filler, though the permission paragraph could be tightened and the parameter semantics gap means the space saved is not fully earned.

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 three-parameter tool with no annotations and no output schema, the description covers destination and failure modes but leaves the return value (a path? a file record?) and two of three parameters unexplained. An agent could call it with just record_id, but not confidently reason about db_code or filename behavior.

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

Parameters2/5

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

Schema description coverage is 0% across three parameters, so the description must compensate and does not. record_id is only indirectly implied by 'this record', and db_code (default EXAMXJTLU) and filename (default empty string — does it derive a name automatically?) are given no meaning at all in the text.

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?

The description states a specific verb+resource in concrete terms: it saves a past exam paper / FYP / thesis as a local PDF and names the exact destination directory (~/.xjtlu-library-mcp/downloads/). It does not distinguish itself from siblings such as download_pdf or browser_download, so an agent cannot tell from the text alone which downloader applies to which resource.

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

Usage Guidelines3/5

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

Usage context is implied rather than stated: the tool is for exam/FYP/thesis records and only requires hasBrowserRight. The description usefully explains that hasDownloadRight is irrelevant here and that no_permission means either a confidentiality period or an unauthorized account, but it never says when to choose this over download_pdf, browser_download, or open_fulltext.

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