Skip to main content
Glama
Vault Cortex Obsidian MCP Server

Vault Cortex Obsidian MCP Server

Memory Recall

vault_memory_recall
Read-onlyIdempotent

Retrieve dated memory entries on a topic across all memory files using keyword and semantic matching, so you can trace how your views evolved. Results sorted oldest-first, with optional single-file scoping.

Instructions

Recall memory entries about a topic — entry-granular hybrid (keyword + semantic) retrieval across ALL About Me/ files and ALL time. Returns the relevant dated entries, up to limit, sorted oldest-first — semantic matching finds early entries even when their phrasing differs from the query. Tuned for recall over precision: expect some marginal entries. Content-word queries ("testing philosophy", "sustainable pacing") rank best. A meta-framed query ("opinions on testing") that scores below the relevance threshold degrades to any-term keyword matching instead of returning nothing.

Example: vault_memory_recall({ query: "working hours and pacing" }) Example: vault_memory_recall({ query: "testing philosophy", file: "Opinions" })

When to use: Answering "what does my memory say about X?" or "how has my view on Y evolved?" — topic-based recall across memory files. Prefer vault_get_memory to read a known file or section verbatim; prefer vault_search for notes outside the memory layer.

Behavior: A memory file change takes a few seconds to appear here. No matching entries returns entries: [] and total: 0, not an error; so does an unknown file — call vault_list_memory_files to discover valid names.

Errors:

  • "[SqliteError]: …" — the index failed, not the call; the message says what to do

Returns: JSON { entries, total, truncated, search_mode, reranked }. Each entry is { file, section, date, text } — text is the raw entry markdown (wikilinks intact, continuation lines included); file and section feed directly into vault_get_memory or vault_delete_memory. The total counts every matched entry; truncated=true means limit dropped the least-relevant matches, whatever their dates, so raise limit or narrow the query for the complete set. With file, limit keeps the most relevant matches from that file. search_mode is "hybrid" when semantic matching contributed and "fts" when keyword matching alone did, the any-term fallback included; reranked is true when the reranker ran.

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

Input Schema

NameRequiredDescriptionDefault
fileNoRestrict to one memory file, name without .md (e.g. "Opinions"), in its exact letter case. Omit for cross-file recall — the default and usual choice.
limitNoCap on returned entries (default 50).
queryYesTopic to recall, in natural language.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.55.4
    • changedInput schema / properties / file / description
      Previous value: -"Optional: restrict to one memory file, name without .md (e.g. \"Opinions\"), in its exact letter case. Omit for cross-file recall — the default and usual choice."New value: +"Restrict to one memory file, name without .md (e.g. \"Opinions\"), in its exact letter case. Omit for cross-file recall — the default and usual choice."
  2. Changed1 schema field changedv0.55.1
    • changedInput schema / properties / query / description
      Previous value: -"Topic to recall — natural language works best (semantic matching bridges phrasing drift across months); content words about the topic rank better than meta framing (\"testing philosophy\" over \"opinions on testing\")"New value: +"Topic to recall, in natural language."
  3. Changed1 schema field changedv0.54.16
    • addedInput schema / additionalProperties
      Added value: +false
  4. Changed1 schema field changedv0.54.9
    • changedInput schema / properties / limit / description
      Previous value: -"Cap on returned entries (default 50). When more match, the least-relevant are dropped and truncated=true — never a date range."New value: +"Cap on returned entries (default 50)."
  5. Changed1 schema field changedv0.54.7
    • changedInput schema / properties / file / description
      Previous value: -"Optional: restrict to one memory file, name without .md (e.g. \"Opinions\"). Omit for cross-file recall — the default and usual choice."New value: +"Optional: restrict to one memory file, name without .md (e.g. \"Opinions\"), in its exact letter case. Omit for cross-file recall — the default and usual choice."
  6. Changed2 schema fields changedv0.50.0
    • addedInput schema / properties / limit
      Added value: +{
      +  "default": 50,
      +  "description": "Cap on returned entries (default 50). When more match, the least-relevant are dropped and truncated=true — never a date range.",
      +  "maximum": 9007199254740991,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • removedInput schema / properties / max_results
      Removed value: -{
      -  "description": "Cap on returned entries (default 50). When more match, the least-relevant are dropped and truncated=true — never a date range.",
      -  "type": "number"
      -}
  7. Addedv0.32.1
  8. Removedv0.32.0
  9. Addedv0.27.2

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, destructiveHint=false), so the bar is lower, yet the description adds real behavioral context: a few-second index lag, empty-result semantics that are not errors, and what a SqliteError means. It also warns that recall is tuned for recall over precision and that marginal entries are expected — useful expectations management beyond annotations. Not a 5 only because query-cost or rate/size behavior is left implicit, but the added value is well above what the annotations supply.

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 purpose is front-loaded, then follows a predictable layout: examples, when-to-use, behavior, errors, returns. Every section carries information an agent needs, but the returns paragraph is dense with several separate concerns (search_mode, reranked, truncated) packed into a single block, costing some scannability. A slightly tighter split of return fields would make it a 5.

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?

Although no output schema exists, the description fully specifies the response shape (entries, total, truncated, search_mode, reranked) and each entry's fields, including how file and section feed into vault_get_memory or vault_delete_memory. For a three-parameter read tool, nothing an agent needs to call and interpret it correctly is missing.

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

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents all three parameters and a baseline 3 would be defensible. The description nevertheless adds genuine meaning: content-word queries ("testing philosophy") rank best while meta-framed queries degrade to any-term keyword matching, and the interaction between file and limit changes truncation behavior (most-relevant-per-file versus globally least-relevant dropped). Phrasing-level syntax guidance is the only thing missing, keeping it at 4.

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?

The opening sentence gives a specific verb (recall), a specific resource (memory entries), and precise scope: entry-granular hybrid retrieval across ALL About Me/ files and all time. It further distinguishes itself from the nearest alternatives by naming vault_get_memory (verbatim known file) and vault_search (notes outside the memory layer), so an agent can route correctly without opening a 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?

There is an explicit 'When to use' clause tied to concrete intents ("what does my memory say about X?", "how has my view on Y evolved?") plus explicit alternatives with their selecting conditions. It also tells the agent what to do when results are empty (call vault_list_memory_files to discover valid names), which is guidance rather than just description.

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