Skip to main content
Glama

mnemosyne_memory_query

Read-only

Searches a vault and returns matching memories word for word, giving you verbatim notes, code, and decisions to quote or build documentation from. Use it when you need the source text itself.

Instructions

Search a vault and get the matching memories back word for word: notes, code, decisions, session summaries, commit history. Nothing is rewritten, so use this when you need the source text itself, to quote it or to write documentation from it. Ranking is vector similarity fused with a local BM25 channel, weighted by spine type. To FIND something rather than quote it, prefer mnemosyne_memory_ask, even when you only want its sources. It retrieves deeper and re-ranks, so it catches rare literal terms this tool misses: proper nouns, identifiers, product names. The score is not a confidence value. A hit and a miss come back with similar numbers, so judge the text, not the number beside it.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMax number of results (default: 10, max: 50)
queryYesThe search query. Be specific. Examples: "why we moved off Postgres", "the retry logic in the payment worker", "notes from the March planning session".
vaultNoVault TOKEN to search, case-insensitive. A token is the folder name uppercased, with spaces and hyphens as underscores. This deployment's default is "DEV". It is also scoped for: PERSONAL, SOCIAL. That list is configuration rather than a census, so call mnemosyne_vault_list to see which of them exist on this machine. Anything outside the list is refused, except a demo vault (DEMO_ token, made with the vault.demoCreate action), which is readable here.DEV
max_content_charsNoPer-memory snippet size in characters (default 600). Each result is cut to this length, with a hint about its full size. Raise it past 2000 when you need whole files, and watch your context window.
spine_type_filterNoOptional whitelist of spine types. Use ["ARCHITECTURE"] for design docs, ["GIT"] for commit history, ["BUGFIX","DEBUG"] for incident knowledge, ["SOURCE_CODE"] for code only. Omit it to get every type, with the SOURCE_CODE scope weighting deciding the ranking.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.4.0-infinity
    • changedInput schema / properties / vault / description
      Previous value: -"Vault TOKEN to search, case-insensitive. A token is the folder name uppercased, with spaces and hyphens as underscores. This deployment's default is \"DEV\". It is also scoped for: PERSONAL, SOCIAL. That list is configuration rather than a census, so call mnemosyne_vault_list to see which of them exist on this machine. Anything outside the list is refused."New value: +"Vault TOKEN to search, case-insensitive. A token is the folder name uppercased, with spaces and hyphens as underscores. This deployment's default is \"DEV\". It is also scoped for: PERSONAL, SOCIAL. That list is configuration rather than a census, so call mnemosyne_vault_list to see which of them exist on this machine. Anything outside the list is refused, except a demo vault (DEMO_ token, made with the vault.demoCreate action), which is readable here."
  2. Changed1 schema field changedv2.2.1-infinity
    • changedInput schema / properties / vault / description
      Previous value: -"Vault TOKEN to search, case-insensitive. A token is the folder name uppercased, with spaces and hyphens as underscores. The path-shaped id from mnemosyne_vault_list also works. This deployment's default is \"DEV\". It is also scoped for: PERSONAL, SOCIAL. That list is configuration rather than a census, so call mnemosyne_vault_list for the vaults that exist on this machine. Anything outside the list is refused."New value: +"Vault TOKEN to search, case-insensitive. A token is the folder name uppercased, with spaces and hyphens as underscores. This deployment's default is \"DEV\". It is also scoped for: PERSONAL, SOCIAL. That list is configuration rather than a census, so call mnemosyne_vault_list to see which of them exist on this machine. Anything outside the list is refused."
  3. Changed4 schema fields changedv1.6.0-infinity
    • changedInput schema / properties / max_content_chars / description
      Previous value: -"Per-chronicle content snippet size in chars (default: 600). Each result is truncated to this length with a hint about total size. Raise to 2000+ when you genuinely need full file content, but be aware results stack up against your context window."New value: +"Per-memory snippet size in characters (default 600). Each result is cut to this length, with a hint about its full size. Raise it past 2000 when you need whole files, and watch your context window."
    • changedInput schema / properties / query / description
      Previous value: -"The search query. Be specific. Examples: \"Phase 51 auto-poll implementation\", \"SDK authentication bug\", \"why did we choose dual-vector dimensions\"."New value: +"The search query. Be specific. Examples: \"why we moved off Postgres\", \"the retry logic in the payment worker\", \"notes from the March planning session\"."
    • changedInput schema / properties / spine_type_filter / description
      Previous value: -"Optional whitelist of spineTypes: restricts results to those types only. Use [\"ARCHITECTURE\"] to surface design docs over code, [\"GIT\"] for commit history, [\"BUGFIX\",\"DEBUG\"] for incident knowledge, [\"SOURCE_CODE\"] to force code-only. Without this, all types are returned (the SOURCE_CODE scope weighting decides ranking)."New value: +"Optional whitelist of spine types. Use [\"ARCHITECTURE\"] for design docs, [\"GIT\"] for commit history, [\"BUGFIX\",\"DEBUG\"] for incident knowledge, [\"SOURCE_CODE\"] for code only. Omit it to get every type, with the SOURCE_CODE scope weighting deciding the ranking."
    • changedInput schema / properties / vault / description
      Previous value: -"Vault TOKEN to query (case-insensitive; the folder name uppercased, spaces and hyphens as underscores). The path-shaped `id` from mnemosyne_vault_list is also accepted and normalized. Mnemosyne OS exposes one vault per tracked folder. This deployment's default is \"DEV\". Tokens this MCP is SCOPED for (a config list, not a census, so some may not be mounted on this machine): PERSONAL, SOCIAL. Call mnemosyne_vault_list for the vaults that actually exist. Anything outside the scoped list is refused."New value: +"Vault TOKEN to search, case-insensitive. A token is the folder name uppercased, with spaces and hyphens as underscores. The path-shaped id from mnemosyne_vault_list also works. This deployment's default is \"DEV\". It is also scoped for: PERSONAL, SOCIAL. That list is configuration rather than a census, so call mnemosyne_vault_list for the vaults that exist on this machine. Anything outside the list is refused."
  4. Addedv1.5.1-infinity

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true; the description adds substantial behavior beyond that: results are verbatim and never rewritten, ranking is vector similarity fused with a local BM25 channel weighted by spine type, and critically that the score is not a confidence value because hits and misses return similar numbers. That last warning is exactly the kind of non-obvious trait annotations cannot convey.

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

Conciseness5/5

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

Front-loads the core capability and its key differentiator (verbatim retrieval), then routes to the alternative, then explains ranking, then closes with the score-interpretation caveat. Every sentence carries distinct information; nothing repeats the name, title, or 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?

With no output schema, the description does meaningful work describing the return shape: verbatim snippets truncated to max_content_chars with a hint about full size, and a per-result score that must not be read as confidence. It stops short of covering result ordering guarantees or how many results typically come back beyond the limit default, which is a minor gap for a search tool of this complexity.

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% and the parameter descriptions are already rich (vault token format, max_content_chars guidance, spine_type_filter examples). The description adds only a light tie-in by noting that spine type weighting drives ranking, which slightly clarifies spine_type_filter's impact but does not add syntax or format meaning beyond the schema. Baseline 3 is appropriate.

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 a vault and get the matching memories back word for word') and immediately qualifies the scope with the types of content returned (notes, code, decisions, session summaries, commit history). It explicitly contrasts itself with the sibling mnemosyne_memory_ask, so an agent can disambiguate without opening either 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?

Gives an explicit when-to-use ('when you need the source text itself, to quote it or to write documentation from it') and a when-to-use-the-other-tool rule ('To FIND something rather than quote it, prefer mnemosyne_memory_ask'). It even handles the tricky case of wanting ask's sources, and names the failure mode of this tool (misses rare literal terms like proper nouns, identifiers, product names).

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