Skip to main content
Glama

search_memory

Search Memory Vault entries by keyword, tag, kind, scope, or date range and surface linked notes via wikilink graph activation.

Instructions

Searches the Memory Vault by keyword query, tag, or entry kind (context, decision, handoff, lesson, belief, heuristic) across local, global, or all scopes. Directly linked notes surface via spreading activation over the wikilink graph.

Args: workspace_dir: Workspace root directory. Empty = engine.default_workspace from the config, else the server's current directory. query: Free-text search string matched against title, content, and tags. tag: Filter by specific tag. kind: Filter by entry kind ('context', 'decision', 'handoff', 'lesson', 'belief', 'heuristic'). scope: Search scope ('local', 'global', or 'all'). Default is 'local'. since: Optional ISO-8601 date/datetime lower bound on entry timestamps. until: Optional ISO-8601 date/datetime upper bound on entry timestamps. min_confidence: Optional minimum certainty threshold in [0.0, 1.0]. project: Optional project slug filter (or '_unassigned' for entries without a project).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNo
kindNo
queryNo
scopeNolocal
sinceNo
untilNo
projectNo
workspace_dirNo
min_confidenceNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv2.1.0
    • addedInput schema / properties / min_confidence
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Min Confidence"
      +}
    • addedInput schema / properties / project
      Added value: +{
      +  "default": "",
      +  "title": "Project",
      +  "type": "string"
      +}
    • addedInput schema / properties / since
      Added value: +{
      +  "default": "",
      +  "title": "Since",
      +  "type": "string"
      +}
    • addedInput schema / properties / until
      Added value: +{
      +  "default": "",
      +  "title": "Until",
      +  "type": "string"
      +}
  2. Changed1 schema field changedv1.1.2
    • addedInput schema / properties / scope
      Added value: +{
      +  "default": "local",
      +  "title": "Scope",
      +  "type": "string"
      +}
  3. Changed1 schema field changedv1.1.1
    • changedInput schema / properties / workspace_dir / default
      Previous value: -"."New value: +""
  4. First observedv1.0.0

TDQS

A3.6/5.0
Behavior2/5

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

With no annotations at all, the description carries the entire behavioral burden. It discloses one real behavioral trait — that directly linked notes surface via spreading activation over the wikilink graph — but says nothing about result limits, ordering, pagination, whether an empty query returns everything, or how multiple filters combine, which matters greatly for a 9-parameter search over a local and global store.

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?

The two-sentence summary is front-loaded and the per-argument block is one line each with no filler. Slightly long overall, but every line contributes a fact not present in the 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?

An output schema exists, so return-value explanation is legitimately omitted, and the parameter surface is fully covered. The remaining gap is combinatory semantics — whether orthogonal filters are ANDed and whether an all-empty call is a browse-everything or an error — which an agent would need before calling it blind.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/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 supply all parameter meaning and it does so for every one of the nine: workspace_dir fallback chain, query matching surface (title, content, tags), the six kind enum values, the three scope values with the 'local' default, ISO-8601 format for since/until, the [0.0, 1.0] range for min_confidence, and the '_unassigned' sentinel for project. This is meaningfully more than the bare schema names and titles provide.

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 opening states a specific verb and resource ("Searches the Memory Vault") plus the three search axes (keyword, tag, entry kind), the scope dimension, and the wikilink spreading-activation behavior. It is clearly a discovery tool distinct from mutation siblings like save_memory or delete_memory, though it never names read_memory or recall_memory to sharpen the boundary.

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 implied by the filter list and the documented default scope of 'local', which tells an agent how to reach global entries. There is no explicit when-to-use statement, no when-not-to-use, and no routing to the closest alternatives (recall_memory, read_memory) present among the siblings.

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