Skip to main content
Glama

Search notes

memory_search
Read-only

Search saved notes by keyword, semantic meaning, or both to retrieve relevant previews and IDs. Filter results by time, writer, project, or namespace, and optionally include replaced notes.

Instructions

Search saved notes and return the best matches as short previews with ids (default 20, at most 200). mode: keyword = the words you give, semantic = similar meaning (falls back to keyword if embeddings are off), hybrid = both, relevant = pass the user's whole message as query (do not combine it with when or include_replaced: that returns an error). Narrow with when, written_by, not_written_by. Replaced notes are hidden unless include_replaced=true. Read-only.

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
modeNoHow to match; see the tool description.
whenNoA time range, e.g. "last week".
limitNoMost results: default 20, at most 200.
queryYesWhat to look for: words, a question, or (mode relevant) a whole message.
detailNo"full": every field and up to 600 body characters per note.
namespaceNoProject to search. Default: default.
written_byNoOnly notes written by this writer.
not_written_byNoLeave out notes written by this writer.
include_replacedNoAlso return notes that a newer note has replaced.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv1.7.0
    • addedInput schema / properties / include_replaced / description
      Added value: +"Also return notes that a newer note has replaced."
    • addedInput schema / properties / limit / description
      Added value: +"Most results: default 20, at most 200."
    • addedInput schema / properties / mode / description
      Added value: +"How to match; see the tool description."
    • addedInput schema / properties / namespace / description
      Added value: +"Project to search. Default: default."
    • addedInput schema / properties / not_written_by / description
      Added value: +"Leave out notes written by this writer."
    • addedInput schema / properties / query / description
      Added value: +"What to look for: words, a question, or (mode relevant) a whole message."
    • addedInput schema / properties / written_by / description
      Added value: +"Only notes written by this writer."
  2. Addedv1.6.0

TDQS

A4.2/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=true, and the description's "Read-only" restates that with no added credit. Beyond annotations it does add real behavior: a 20-result default capped at 200, replaced notes hidden unless include_replaced=true, and semantic silently falling back to keyword when embeddings are off.

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?

Front-loaded with purpose and return shape, then grouped guidance in a tight block with no filler sentences. The dense parentheticals and long clause chains make it slightly harder to scan than it needs to be.

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?

For a nine-parameter search tool with no output schema, the description covers result format, default and maximum limits, per-mode matching behavior, available narrowing filters, hidden-by-default replaced notes, and the one combination that errors out. An agent has what it needs to call this correctly.

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 the baseline is 3 and the schema already documents every parameter. The description adds genuine meaning for mode values (the schema only says "see the tool description") and the mutual-exclusion error, but the remaining filters are only echoed.

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 and resource ("Search saved notes") and even the shape of the result ("short previews with ids"), which lets an agent tell this apart from a plain list or read operation. It stops short of explicitly naming the sibling that returns notes without searching, so it is not a full 5.

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?

Gives explicit mode selection semantics (keyword vs semantic vs hybrid vs relevant), a hard rule that "relevant" must not be combined with when or include_replaced because it "returns an error", and names the filters for narrowing. When-to-use guidance is specific and actionable.

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