Skip to main content
Glama

read_vault

Retrieve a vault file by UID or path; pass a commit hash to return its state after that commit, including earlier or deleted versions.

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.

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?

No annotations exist, so the description carries the full burden and does so well: it discloses automatic path resolution, that a commit hash returns the historical version even for changed or deleted nodes, and the non-obvious "~1" suffix convention for retrieving a pre-deletion version. Gaps remain on error behavior for missing or unresolvable paths and on any vault_root prerequisite.

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 core action and preferred input form are front-loaded in the first three lines, then the optional commit behavior is layered beneath. Every clause adds usable detail — no restatement of the name and no filler.

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?

Return values need not be described because an output schema exists, and the tricky historical-read semantics are fully covered. The remaining gap is edge-case behavior — what happens for a nonexistent path, an ambiguous UID, or a commit that predates the file.

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: path is defined as an 8-character hex UID, an absolute path, or a vault_root-relative path, with a concrete example of each. commit is defined as a hash from history_vault plus the special "~1" form for deleted nodes, information present nowhere in the schema.

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?

States a specific verb+resource ("Read a vault file") and immediately enumerates the three accepted path forms, so the agent knows exactly what the tool consumes. It does not explicitly contrast itself with near siblings like read_meta, history_vault, or read_skill, which keeps it short of a 5.

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?

Gives a concrete preference rule ("Prefer passing the UID when you have it — the path will be resolved automatically") and points at history_vault as the source of the commit hash, which is real cross-tool routing guidance. It stops short of stating when not to use this tool versus alternatives such as read_meta or search_vault.

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