Skip to main content
Glama
willfate
by gro83j

willfate_memory_search

Search a local personal memory database and a user-supplied classical Chinese text library using hybrid full-text and sparse-vector retrieval to find relevant notes, terms, or passages.

Instructions

在本地个人长期记忆库(personal_memory.db)与用户自备古籍书库(books.db)中执行 FTS5 + 稀疏向量混合检索

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": "willfate_memory_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
topKNo返回条数,默认 8
queryYes检索问题或术数关键词
scopeNo检索范围,默认 all

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 supplied, the description carries the full burden. It does disclose the retrieval mechanism (hybrid lexical + sparse vector) and that the data lives in local SQLite files, which implies a read-only, offline lookup; but it says nothing about result format, ranking/fusion behavior, empty-result behavior, or whether the books database must be configured first.

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?

A single front-loaded sentence naming the action, the two target stores, and the retrieval technique, with zero padding. Nothing in it is redundant with the title or schema.

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?

For a three-parameter, fully documented read-only search with no output schema, the description covers what is searched and how well enough to invoke it correctly. The main remaining gap is that it does not characterize the returned results or the prerequisite of having ingested memory/books data.

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% and every parameter (query, scope, topK) already carries its own description and default, so the baseline is 3. The description adds the framing that 'query' is a question or 术数 keyword and that scope covers memory vs. books, but no syntax or format guidance beyond the schema.

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 states a specific action, namely a hybrid FTS5 + sparse-vector retrieval, and names both corpora it searches: the personal long-term memory store (personal_memory.db) and the user-supplied classical-text library (books.db). This separates it from the divination siblings (bazi, ziwei, tarot…) and from profile/warmstart tools, though it does not explicitly name the memory siblings it differs from.

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?

Usage is only implied: an agent can infer it should call this when it needs to recall stored personal facts or look up classical sources, and the scope enum hints at choosing a corpus. There is no explicit when-to-use/when-not statement and no mention of how this relates to willfate_profile_get, willfate_reading_log, or willfate_warmstart.

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