Skip to main content
Glama
GetNote MCP Server

GetNote MCP Server

by iswalle

search_knowledge_base

Searches a specified knowledge base with semantic recall and returns matches ranked by relevance for queries such as search my XX knowledge base.

Instructions

知识库语义搜索:在指定知识库范围内进行语义召回。适用场景:「在我的 XX 知识库搜一下 XX」。返回结果按相关度从高到低排序。需要 note.topic.search_account_content.read scope。

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

Input Schema

NameRequiredDescriptionDefault
queryYes搜索关键词或语义描述(必填)
top_kNo返回数量,默认 3,最大 10
topic_idYes知识库 ID(来自 list_topics 的 topic_id 字段)(必填)
response_modeNo显式摘要模式;不传保持旧正文。需search.snippet.v1,不支持课程内语义筛选
max_snippet_charsNo每个命中的Unicode码点上限,默认400;需response_mode=snippet,full只表示完整片段

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.12.3

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations at all, the description carries the full disclosure burden and it does add real value: relevance-descending result ordering and the required 'note.topic.search_account_content.read' scope are both stated. However, it says nothing about result contents, empty-result behavior, coverage of content types, or error conditions tied to the scope requirement.

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?

Four compact sentences, front-loaded with purpose, then the usage pattern, then the output ordering, then the prerequisite scope. No filler, though the ordering sentence and the scope sentence could be folded more tightly without loss.

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 5-parameter search tool with no annotations and no output schema, the definition covers purpose, trigger, ordering, and auth but leaves the return payload shape entirely unstated — an agent cannot tell whether hits are notes, files, or snippets, nor how snippet mode changes them. Adequate to invoke, incomplete for interpreting results.

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 100%, so every parameter including top_k bounds (max 10) and the snippet-mode gate ('需search.snippet.v1') is already documented in the schema. The description adds no additional parameter meaning beyond restating that search happens within a given knowledge base. Baseline 3 applies when the schema does the heavy lifting.

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 specific verb+resource combination ('知识库语义搜索' / semantic search over a knowledge base) and constrains the scope to a single knowledge base ('在指定知识库范围内进行语义召回'), which implicitly separates it from account-wide search. It never names a sibling tool outright, so the differentiation is inferable rather than explicit.

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?

Gives a concrete trigger pattern ('适用场景:「在我的 XX 知识库搜一下 XX」') that tells an agent exactly what kind of user request should route here, plus the permission scope needed to succeed. It stops short of stating when NOT to use it or naming an alternative such as a broad account-content search.

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