Skip to main content
Glama

Ykb Search Local

ykb_search_local

Search locally cached questions, comments, and notes by keyword to find previously synced Yikaobang content without making network requests.

Instructions

在本地缓存中按关键词搜索(questions=题干, comments=评论内容, notes=笔记内容, all=全部)。数据来自此前拉取/同步过的内容,不发起网络请求。

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": {
      "keyword": "<keyword>"
    },
    "name": "ykb_search_local"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoall
limitNo
keywordYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full load and does add real context: no network requests are made and results come only from previously synced content. However, it is silent on matching behavior (exact vs substring, case sensitivity), result ordering, and whether limit truncates silently, all of which matter for a search tool.

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?

Two compact clauses, front-loaded with the action and scope, with the kind mapping in a tight parenthetical and the data-source caveat last. Nothing is padding; every element adds information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/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 no explanation, and the description covers the two things structured fields cannot: data provenance and the `kind` value meanings. The remaining gap is the unstated sync prerequisite and match semantics, which keep it from fully covering a 3-parameter, annotation-free tool.

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 0%, so the description must compensate. It does define the meaningful values of `kind` (questions=题干, comments=评论内容, notes=笔记内容, all=全部), which the schema leaves as a bare string with default 'all' — genuine added value. But `keyword` matching semantics and `limit` behavior/ceiling go entirely unexplained.

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 (search) and a specific resource scope (local cache), and clarifies the data provenance ('来自此前拉取/同步过的内容,不发起网络请求'), which differentiates it from live-fetch siblings like ykb_comments or ykb_notes. It stops short of naming any sibling outright, so differentiation relies on inference.

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?

Implies the usage condition (search content that was previously pulled/synced, offline, no network) but never states when NOT to use it or which tool to call instead for live data. It also omits the practical prerequisite that a sync must have run first, so an agent with an empty cache gets no routing hint toward ykb_sync.

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