Skip to main content
Glama
weileyao2005

cnki-deepsearch

by weileyao2005

cnki_search

Search CNKI academic literature using natural language queries. Automatically constructs professional search expressions and supports filtering by topic, keyword, author, institution, and year.

Instructions

搜索知网CNKI学术文献。支持自然语言描述搜索需求,自动构造专业检索表达式。适用于:主题搜索、关键词搜索、作者搜索、机构搜索、年份筛选等。

【使用须知,必读】

  1. 不要与其他 cnki 工具并行调用——浏览器操作是串行的,并行调用会互相等待直至超时。一次只发一个 cnki 请求,等它返回再发下一个。

  2. 年份范围请用 year_from/year_to 参数(内部自动使用正确语法),不要自己构造 YE BETWEEN 表达式——该写法会被知网风控拦截。

  3. 若返回"暂无数据,请稍后重试":是被知网风控临时拦截,等待 30-60 秒后重试一次,或去掉部分筛选条件再试。

  4. 若返回"超时"错误:直接原样重试一次即可(服务会自动重建浏览器连接)。

  5. max_results 建议不超过 60(知网每页 20 条,翻页过多易触发风控)。

  6. 该 MCP 使用真实浏览器窗口操作知网,若页面跳转到验证页,需要用户人工完成验证后再重试。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fundNo按基金筛选
fieldNo一框式检索的搜索字段。可选:SU(主题,默认)、TI(篇名)、KY(关键词)、AB(摘要)、FT(全文)、AU(作者)、AF(作者单位)、FU(基金)、LY(文献来源)、TKA(篇关摘)
queryYes搜索内容描述。可以是简单的关键词(如'人工智能'),也可以是带修饰的描述(如'作者:张三 关键词:机器学习 2020-2024')。支持的修饰字段:作者:、关键词:、单位:、基金:、来源:、篇名:、摘要:
authorNo按作者筛选
keywordNo按关键词筛选
year_toNo结束年份(含)
year_fromNo起始年份(含)
max_resultsNo最大返回结果数,默认20
organizationNo按作者单位筛选

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A4.8/5.0
Behavior5/5

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

Even though annotations are None, the description discloses critical behavioral aspects: it uses a real browser, may trigger verification pages requiring manual intervention, can hit rate limits (returning '暂无数据' or timing out), and describes retry strategies. This is highly transparent about the tool's runtime behavior and failure modes.

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 description is well-structured: a concise opening sentence states the purpose, followed by a numbered list of usage notes. The notes are lengthy but essential due to the browser-based nature and rate-limiting caveats. Information is front-loaded and organized logically, with no redundant fluff.

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?

Given the complexity (real browser, potential verification, rate limits, timeout retries), the description covers all necessary operational context. It explains how to construct queries, what parameters to use, how to handle errors, and when to involve the user (verification). There is no output schema, so return values are not required, but all other relevant aspects are addressed.

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?

All 9 parameters are described in the schema, with detailed explanations for 'query' including examples and supported modifier fields (e.g., 作者:, 关键词:). The descriptions clarify each filter (author, organization, fund, year) and the 'field' enum values. Schema coverage is 100%, and the description adds extra context for the query parameter, leaving no ambiguity.

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 clearly states it searches CNKI academic literature with natural language support and lists applicable use cases (topic, keyword, author, institution, year). However, it does not explicitly distinguish from sibling search tools like cnki_professional_search or cnki_search_with_abstracts, so the purpose is clear but not fully differentiated.

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?

The description includes a detailed '使用须知' block with explicit guidance: avoid parallel calls, use year_from/year_to instead of manual YE BETWEEN expressions, handle rate limiting with retry, deal with verification pages, and cap max_results. This provides strong operational instructions and effectively tells when and how to use the tool.

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