Skip to main content
Glama
markdown-vault-mcp

markdown-vault-mcp

by pvliesdonk

Read Note

read
Read-onlyIdempotent

Retrieve a note's text, frontmatter, and etag, or an attachment's bytes as base64 by vault path; optionally return a specific section, historical revision, or metadata-only result.

Instructions

Return a note's text, frontmatter and etag, or an attachment's bytes as base64.

Look paths up with search or list_documents first rather than guessing them.

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

Input Schema

NameRequiredDescriptionDefault
pathYesPath in the vault, such as `"Journal/note.md"` or `"assets/diagram.pdf"`; case-sensitive.
sectionNoA heading, such as the heading field of a search result; returns that section and its sub-sections instead of the whole note. Notes only.
revisionNoA commit SHA from get_history or from a write result's previous_revision; returns the note as it stood then, without an etag. Pass path as the note is named today. To restore that text, write it with the etag of a read without revision.
include_contentNoFalse returns only path, size_bytes, modified_at and etag, the SHA-256 of the whole file's raw bytes, at any file size.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv7.1.0
    • addedInput schema / properties / include_content
      Added value: +{
      +  "default": true,
      +  "description": "False returns only path, size_bytes, modified_at and\netag, the SHA-256 of the whole file's raw bytes, at any file size.",
      +  "type": "boolean"
      +}
  2. Changed3 schema fields changedv6.1.0
    • changedInput schema / properties / path / description
      Previous value: -"Relative path to the document or attachment\n(e.g. \"Journal/note.md\" or \"assets/diagram.pdf\").\nCase-sensitive."New value: +"Path in the vault, such as `\"Journal/note.md\"` or `\"assets/diagram.pdf\"`;\ncase-sensitive."
    • changedInput schema / properties / revision / description
      Previous value: -"Read the note as it stood at that commit instead of on\ndisk (git-backed vaults, .md only). A sha from 'get_history'\nor a write result's 'previous_revision'. Pass *path* as the\nnote is named today; renames are followed. Composes with\nsection=."New value: +"A commit SHA from get_history or from a write result's\nprevious_revision; returns the note as it stood then, without an etag.\nPass path as the note is named today. To restore that text, write it\nwith the etag of a read without revision."
    • changedInput schema / properties / section / description
      Previous value: -"When provided, return the whole section whose heading\nmatches *section* — every paragraph, list, and sub-section\nfrom the heading up to the next heading at the same or higher\nlevel (case-sensitive; internal whitespace is collapsed before\ncomparison). Pass the ``heading`` value from a ``search``\nresult unchanged for guaranteed match. ``None`` (the default)\nreturns the whole document. Ignored for non-.md paths."New value: +"A heading, such as the heading field of a search result; returns that\nsection and its sub-sections instead of the whole note. Notes only."
  3. Changed1 schema field changedv5.0.0
    • addedInput schema / properties / revision
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Read the note as it stood at that commit instead of on\ndisk (git-backed vaults, .md only). A sha from 'get_history'\nor a write result's 'previous_revision'. Pass *path* as the\nnote is named today; renames are followed. Composes with\nsection=."
      +}
  4. First observedv3.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so safety is covered. The description adds the useful behavioral note that attachments come back as base64 and the search-first rule, but says nothing about error behavior for missing paths, size limits on content reads, or encoding concerns beyond base64 — leaving it at an adequate baseline.

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?

Two sentences, front-loaded with the return contract and followed by the operational constraint. Nothing is redundant and no sentence could be removed without losing information.

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 an output schema present, the description is not obliged to explain return shapes, and annotations cover the safety profile; the search-first guidance closes the main usability gap. It could still note what happens on a nonexistent or case-mismatched path, which the case-sensitivity mention in the schema hints is a real risk.

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 every parameter (path, section, revision, include_content) carries its own detailed description in the schema, so the description correctly defers. It does not restate or add meaning to any parameter, which is acceptable given the schema's completeness but adds no value beyond it.

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?

The description uses a specific verb ('Return') and names the exact resources and output shapes: note text, frontmatter and etag, or attachment bytes as base64. That is concrete enough for an agent to know this is the content-fetching operation, though the bare name 'read' would benefit from more explicit differentiation from content-reading siblings like vault_read or fetch.

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 an actionable prerequisite — resolve paths with search or list_documents rather than guessing — which prevents a common failure mode. It stops short of explicit when-not guidance (e.g., when to prefer the section or revision variants, or when a metadata-only call is preferable), so it sits just under full marks.

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