Skip to main content
Glama

read_vault

Retrieve a Markdown vault note by UID, absolute path, or relative path, or fetch its historical version at a given commit, including notes changed, renamed, or deleted.

Instructions

Read a vault file. Accepts an 8-character hex UID (e.g. "0b74b77c"), an absolute path, or a path relative to vault_root (e.g. "my-note--0b74b77c.md"). Prefer passing the UID when you have it — the path will be resolved automatically.

With commit (a hash from history_vault), returns the file as it was right after that commit — also for a node that has since been changed or deleted. For a deleted node, pass the hash of the commit that deleted it with "1" added (e.g. "a1b2c3d1") to get the last version before the deletion. A commit from before a rename still works: the note is found at its old path.

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": {
      "path": "<path>"
    },
    "name": "read_vault"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
commitNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does well: it discloses path auto-resolution, time-travel via commit, retrieval of deleted or changed nodes, the "~1" suffix trick for deletions, and rename-tolerant lookup. It omits behavior on a nonexistent path or bad hash (error vs. empty result) and never states read-only/rate characteristics, leaving a modest gap.

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?

The tool identity is front-loaded in a single short sentence, then path forms, then the UID preference, then commit semantics in a tight progression. Every sentence adds new information; nothing is redundant despite the multi-line wrapping.

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 shape need not be explained, and the description covers the tricky parts of both inputs plus the commit time-travel model. Only error/failure behavior for invalid paths or unknown hashes is left undetermined, which is minor for a read tool.

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% for both parameters, so the description must compensate entirely, and it does: path is defined with three accepted formats and examples, and commit is defined with its provenance (history_vault), its snapshot semantics, the "~1" deletion convention, and rename behavior. This adds substantial meaning the schema does not 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?

"Read a vault file" gives a specific verb and resource, and the body clarifies it can resolve a UID, an absolute path, or a vault-relative path and can return historical versions. It stops short of explicitly distinguishing itself from siblings like read_meta or search_vault, so an agent must infer that boundary from names alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a clear preference rule ("Prefer passing the UID when you have it") and explains exactly when to supply commit, including pointing at history_vault as the source of hashes. It does not state when to use this instead of read_meta or search_vault, but the guidance it does give is actionable.

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