Skip to main content
Glama
litMcp

litMcp

by L1nze

Cnki Job

cnki_job

Resume or cancel a pending CNKI search or PDF download by job_id after user verification; use cancel to release the waiting window.

Instructions

Continue or cancel a CNKI search or PDF download by job_id.

When the user says “继续” after verification in the original window, call with the same job_id. Use action='cancel' to release the window. Each call waits up to 20 seconds. Verification expires after 4 minutes and completed results can be read again for 4 minutes. Restarting the server clears job IDs. If the ID has expired, restart the original call.

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": {
      "job_id": "<job_id>"
    },
    "name": "cnki_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionNoresume
job_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: each call blocks up to 20 seconds, verification expires after 4 minutes, completed results remain readable for 4 minutes, and restarting the server clears job IDs. These timing and lifecycle constraints are exactly the kind of context an agent cannot get from structured fields.

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?

The primary action is front-loaded in the opening sentence, and the follow-on sentences each add a distinct operational fact (timing, expiry, restart, recovery). It is slightly dense with time constants in a single paragraph, but no sentence is filler.

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?

An output schema exists, so return values need not be described, and the description covers the remaining lifecycle concerns an agent needs: blocking duration, verification expiry, result re-read window, and job-ID invalidation on server restart. Nothing essential to a correct call is missing.

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

Parameters4/5

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

Schema coverage is 0%, so the description must compensate, and it largely does: it explains that job_id is the identifier from the original call and must be reused, and that action='cancel' releases the window. The remaining gap is that the default value 'resume' and the full set of accepted action values are never enumerated in prose.

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 first sentence gives a specific verb pair (continue or cancel) plus the resource (a CNKI search or PDF download) keyed by job_id. This clearly separates it from search_cnki and download_pdf, which initiate work rather than resume or abort it.

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

Usage Guidelines5/5

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

It states the trigger ('when the user says 继续 after verification in the original window'), the resume path (call with the same job_id), the cancellation path (action='cancel' to release the window), and the recovery path when an ID has expired (restart the original call). When-to-use and what-to-do-on-failure are both explicit.

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