Skip to main content
Glama

diff_vault

Show how a single commit changed a note as a unified diff, with removed and added lines. Use a commit hash and note path, including paths from before renames.

Instructions

Show the change one commit made to a node, as a unified diff: lines starting with "-" were removed, "+" were added. Get the commit hash from history_vault. Returns {diff} or {error}. 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>",
      "commit": "<commit>"
    },
    "name": "diff_vault"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
commitYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does real work: it defines the diff sign convention, discloses both return shapes ({diff} or {error}), and explains the non-obvious rename behavior (old paths still resolve). It doesn't state read-only safety or any size/pagination limits, which keeps it from a 5.

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?

Four short lines, front-loaded with the action and output format, then the diff convention, then the input source and return shape. Every sentence adds information; nothing is 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?

For a two-parameter read tool with no output schema, the description covers the return shape, the error case, and the notable rename edge case. The remaining gap is explicit parameter definition, which matters given 0% schema coverage.

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 0%, so both parameters depend on prose. The description effectively explains 'commit' (a hash obtained from history_vault) and indirectly clarifies 'path' via the rename note about the note being found at its old path, but it never explicitly defines path as the node's vault path.

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 ('Show the change one commit made to a node') plus the output format (unified diff), which cleanly separates it from history_vault, which enumerates commits. An agent can pick between them 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 Guidelines4/5

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

Gives the concrete prerequisite and source for the required input: 'Get the commit hash from history_vault.' It stops short of stating when not to use it (e.g., for uncommitted working-tree changes), but the usage context is unambiguous.

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