Skip to main content
Glama

search_knowledge

Searches your local career knowledge base for saved job descriptions, interview notes, and resumes. Returns source paths, relevance, and previews, plus next-step guidance when no matches are found.

Instructions

检索本地知识库(用户积累的求职资料)。

只搜索用户主目录 ~/.career-kit/knowledge/:scraper 抓取自动存入的 JD/面经, 以及用户手动放入的简历、市场资料。不联网,不调用 LLM。

何时调用:

  • 分析前查找已积累的同背景案例、目标公司 JD

  • 查询之前抓取过的面经内容

Args: query: 搜索关键词 示例:「AI Agent 面经」「字节跳动 JD」「双非 转 AI」

Returns: 每条含来源文件路径、相关度、内容预览。 无结果时返回下一步指引(用 fetch_company_jobs 抓取)—— 此时不要基于自身知识编造市场数据。

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": {
      "query": "<query>"
    },
    "name": "search_knowledge"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.9/5.0
Behavior3/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 it does disclose meaningful traits: local-only access, no network, no LLM, and a defined fallback behaviour when nothing matches, plus an explicit warning not to fabricate market data. It does not state that the operation is read-only, whether matching is on filenames or file contents, how results are ranked, or whether there are limits on result count, so the read-safety and mechanics profile is only partially covered.

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?

It is front-loaded with the one-line purpose, then scope, then explicit headings for when to call, arguments and returns, so an agent can scan it quickly. Some of the Returns section duplicates what the output schema already covers, which is mild redundancy rather than a real defect.

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 a one-parameter search tool with an output schema present, the definition supplies everything needed to call it correctly: the data domain, the invocation triggers, the parameter's expected form, and an explicit instruction on what to do when the result set is empty. The remaining omissions, such as ranking mechanics and result caps, are non-blocking for correct invocation.

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?

The single query parameter has 0% schema description coverage, so the description must compensate, and it does: it labels the field as a search keyword and gives three illustrative queries ('AI Agent 面经', '字节跳动 JD', '双非 转 AI') that convey the expected phrasing and language. It stops short of stating whether multi-term or boolean syntax is supported, but the examples carry most of the practical meaning.

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 opening line specifies the verb plus the resource ('检索本地知识库'), then narrows the scope to exactly one directory (~/.career-kit/knowledge/) and to the two kinds of content found there (scraper-captured JDs/interview reports, user-placed resumes). That scope makes it distinguishable in practice from broader search siblings such as search_cases, but the description never explicitly contrasts the two, so the difference must be inferred from the data-source wording.

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?

Two concrete 'when to call' bullets (find accumulated same-background cases and target-company JDs before analysis; re-query previously scraped interview reports) give the agent a usable trigger. The no-results path also routes the agent forward to fetch_company_jobs, which is an explicit alternative plus condition; what is missing is a negative case stating when this tool should not be used at all.

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