Skip to main content
Glama

memory_search

Search long-term memory for facts, preferences, and decisions from earlier conversations. Use it to recall what was previously discussed instead of assuming you don't remember.

Instructions

Search long-term memory for facts, preferences and decisions recorded in earlier conversations. Call this whenever the user refers to something from before, instead of assuming you do not remember. Use it for 方案是什么 / 怎么做的 / 长期事实 / 偏好 / 决策. Do NOT use it for 什么时候做的 / 哪个窗口 / 结没结 / 还有哪些没落 — those are timeline questions, use journal_recall. Do NOT use it for 原话 / 逐字引用 — use session_search. (选我:一句话事实/偏好。要四源全景用 memory_recall;要时间线/窗口用 journal_recall;要逐字原话用 session_search.)

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

Input Schema

NameRequiredDescriptionDefault
forceNoInclude superseded/archived cards (they are skipped by default). Use when the user explicitly asks about an old version.
limitNoMax results, default 8, max 20. Raise it when the topic spans many entries.
queryYesKeywords describing what to recall.
scopeNoOptional scope filter.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. The search verb implies a read-only operation, and the description clarifies what corpus is being searched (facts from earlier conversations) and that the tool should be preferred over assuming ignorance — genuinely useful. However it never states what a result looks like, whether archived/superseded cards are silently excluded by default, or any cost/latency characteristics, which matters for a memory store where the default filtering behavior changes the answer.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Strong front-loading — the routing rule and the negative exclusions come before the parenthetical. But the trailing "(选我:… 要时间线/窗口用 journal_recall;要逐字原话用 session_search)" restates journal_recall and session_search routing already given two sentences earlier, so a meaningful share of the text is duplication rather than new information.

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?

With no annotations and no output schema, the definition should also tell the agent what comes back — card count, whether results are ranked, whether archived cards are visible in output. It covers selection well but leaves the return shape entirely implicit for a 4-parameter retrieval 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 100%, so query, scope, limit and force are already documented, including the default-skip-of-superseded behavior behind `force`. The description's only added signal is that queries are keyword-style ("一句话事实/偏好"), which is a mild hint rather than real parameter semantics. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Search long-term memory for facts, preferences and decisions recorded in earlier conversations") and immediately distinguishes itself from journal_recall (timeline), session_search (verbatim quotes) and memory_recall (four-source panorama). An agent can route without opening any sibling schema.

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?

Explicit when-to-use ("whenever the user refers to something from before"), explicit when-not-to-use with the exact question shapes that belong elsewhere (什么时候做的 / 哪个窗口 / 原话), and each exclusion names the replacement tool. This is about as complete as routing guidance gets.

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