Skip to main content
Glama
Vault Cortex Obsidian MCP Server

Vault Cortex Obsidian MCP Server

Get Memory

vault_get_memory
Read-onlyIdempotent

Read semantic memory entries from About Me files—by whole file, section, or since a date—to retrieve user preferences, principles, and opinions.

Instructions

Read semantic memory from About Me/ files. Each file holds dated bullet entries under H2 headings. With file: that file. With file+section: just that H2 section's entries. With file+on_or_after: only the entries dated on or after that date, from one H2 section when section is given and otherwise from every section.

Example: vault_get_memory({ file: "Principles" }) — the whole file Example: vault_get_memory({ file: "Principles", section: "Decision heuristics (newest first)" }) Example: vault_get_memory({ file: "Opinions", section: "Code patterns", on_or_after: "2026-09-01" }) Example: vault_get_memory({ file: "Opinions", on_or_after: "2026-09-01" }) — every section's entries since the date

When to use: Reading user preferences, principles, opinions, or other persistent context stored in About Me/ files. Call vault_list_memory_files first to discover valid file and section names. Prefer vault_read_note for reading non-memory notes. To find entries by topic across every file, use vault_memory_recall.

Behavior:

  • No args reads every file, joined by --- lines, which can be large.

  • Entries come back in the order the file holds them, which is newest first when entries were added at the top.

  • With no memory files yet, a read returns an empty string; with on_or_after, an empty match returns { entries: [], total: 0, on_or_after }.

Errors:

  • "section requires a file" / "on_or_after requires a file" — add file

  • "memory file not found" — call vault_list_memory_files to discover valid names

  • "memory file must not start with a dot" / "… must be a bare name without path separators" / "… must be named without .md" — each message names the part of the name to drop

  • "section not found: …" — no H2 heading matches; the message lists the file's sections

  • "date must be a real ISO calendar date" — on_or_after must be a valid YYYY-MM-DD date

  • "cannot read memory file …" / "cannot list memory folder …" — a memory file, or the About Me/ folder itself on a call without file, can't be read: check file against vault_list_memory_files and shorten an over-long name; otherwise ask the vault's owner to check the folder

Returns: Without on_or_after, raw markdown with the properties block stripped. With on_or_after, JSON { entries, total, on_or_after } where each entry is { file, section, date, text } — text is the raw entry markdown (bullet + continuation lines, wikilinks intact).

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

Input Schema

NameRequiredDescriptionDefault
fileNoMemory file name without .md (e.g. "Principles", "Opinions"). Use the exact letter case.
sectionNoH2 section heading (e.g. "Decision heuristics (newest first)"). Matched case-insensitively, with or without the "(newest first)" suffix.
on_or_afterNoInclusive date filter (YYYY-MM-DD).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.55.4
    • changedInput schema / properties / on_or_after / description
      Previous value: -"Inclusive date filter (YYYY-MM-DD). Requires a file."New value: +"Inclusive date filter (YYYY-MM-DD)."
    • changedInput schema / properties / section / description
      Previous value: -"H2 section heading (e.g. \"Decision heuristics (newest first)\"). Matched case-insensitively, with or without the \"(newest first)\" suffix. Omit to read the whole file."New value: +"H2 section heading (e.g. \"Decision heuristics (newest first)\"). Matched case-insensitively, with or without the \"(newest first)\" suffix."
  2. Changed2 schema fields changedv0.55.1
    • changedInput schema / properties / on_or_after / description
      Previous value: -"Inclusive date filter (YYYY-MM-DD). When provided with file, returns structured JSON entries dated on or after this date instead of raw markdown. Requires a file; add section to scope to one H2 section."New value: +"Inclusive date filter (YYYY-MM-DD). Requires a file."
    • changedInput schema / properties / section / description
      Previous value: -"H2 section heading (e.g. \"Decision heuristics (newest first)\"). Matched case-insensitively, with or without the \"(newest first)\" suffix. Omit to read the whole file (with on_or_after, every H2 section's entries). Call vault_list_memory_files first to discover valid names."New value: +"H2 section heading (e.g. \"Decision heuristics (newest first)\"). Matched case-insensitively, with or without the \"(newest first)\" suffix. Omit to read the whole file."
  3. Changed1 schema field changedv0.54.16
    • addedInput schema / additionalProperties
      Added value: +false
  4. Changed1 schema field changedv0.54.7
    • changedInput schema / properties / file / description
      Previous value: -"Memory file name without .md (e.g. \"Principles\", \"Opinions\")"New value: +"Memory file name without .md (e.g. \"Principles\", \"Opinions\"). Use the exact letter case."
  5. Changed2 schema fields changedv0.54.1
    • changedInput schema / properties / on_or_after / description
      Previous value: -"Inclusive date filter (YYYY-MM-DD). When provided with file and section, returns structured JSON entries dated on or after this date instead of raw markdown. Requires both file and section."New value: +"Inclusive date filter (YYYY-MM-DD). When provided with file, returns structured JSON entries dated on or after this date instead of raw markdown. Requires a file; add section to scope to one H2 section."
    • changedInput schema / properties / section / description
      Previous value: -"H2 section heading (e.g. \"Decision heuristics (newest first)\"). Matched case-insensitively, with or without the \"(newest first)\" suffix. Call vault_list_memory_files first to discover valid names."New value: +"H2 section heading (e.g. \"Decision heuristics (newest first)\"). Matched case-insensitively, with or without the \"(newest first)\" suffix. Omit to read the whole file (with on_or_after, every H2 section's entries). Call vault_list_memory_files first to discover valid names."
  6. Changed1 schema field changedv0.53.0
    • addedInput schema / properties / on_or_after
      Added value: +{
      +  "description": "Inclusive date filter (YYYY-MM-DD). When provided with file and section, returns structured JSON entries dated on or after this date instead of raw markdown. Requires both file and section.",
      +  "minLength": 1,
      +  "type": "string"
      +}
  7. Addedv0.32.1
  8. Removedv0.32.0
  9. Changed2 schema fields changedv0.22.1
    • addedInput schema / properties / file / minLength
      Added value: +1
    • addedInput schema / properties / section / minLength
      Added value: +1
  10. Changed1 schema field changedv0.19.2
    • changedInput schema / properties / section / description
      Previous value: -"H2 section heading (e.g. \"Decision heuristics (newest first)\"). Call vault_list_memory_files first to discover valid names."New value: +"H2 section heading (e.g. \"Decision heuristics (newest first)\"). Matched case-insensitively, with or without the \"(newest first)\" suffix. Call vault_list_memory_files first to discover valid names."
  11. Added

TDQS

A4.5/5.0
Behavior3/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds real behavior beyond them: no-arg reads every file and 'can be large', entries return in file order, and the two distinct return shapes (raw markdown vs { entries, total, on_or_after }). The exhaustive error enumeration with recovery steps adds further context, though much of it restates what validation would surface anyway, so this sits at solid-but-not-exceptional rather than top marks.

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?

Dense but organized into labelled blocks (purpose, examples, when to use, behavior, errors, returns) with no filler sentences. Minor deductions: the routing guidance appears after four examples instead of near the front, and the error catalog is long enough to dilute the core read semantics.

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?

Covers everything an agent needs for a 3-param read tool: scoping semantics, ordering, output shape for both modes, empty-result behavior, prerequisite discovery call, and sibling routing. No output schema exists, and the description compensates by describing both return formats explicitly.

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 coverage is 100%, yet the description still adds genuine meaning: how parameters combine (file+section scopes to one H2, file+on_or_after scans every section when section is omitted), and which combinations are invalid ('section requires a file', 'on_or_after requires a file'). Four worked examples make the interaction model concrete rather than inferable.

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?

Opens with a specific verb and resource ('Read semantic memory from About Me/ files') and immediately explains the internal structure (dated bullet entries under H2 headings). It distinguishes itself from vault_read_note and vault_memory_recall by name, so an agent can choose without opening schemas.

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' line names the content types (preferences, principles, opinions) plus two alternatives and their conditions: vault_read_note for non-memory notes, vault_memory_recall for topic search across files. It also mandates calling vault_list_memory_files first to discover valid file/section names.

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