Skip to main content
Glama
mdvault-mcp
by 0xmortuex

read_note

Read a single vault note by path, name, or wikilink to retrieve its title, tags, link counts, frontmatter, and body; use raw mode for exact file text or max_chars to limit long content.

Instructions

Read one note. note is a vault path ('Projects/Plan.md'), a name ('Plan') or a [[wikilink]]; a name shared by several notes returns an error listing the full paths.

Returns the path, title, tags, link counts, the parsed frontmatter as JSON, and the body. raw=true returns the exact file text including the frontmatter block (use it before edit_note when you need to change the frontmatter itself). Long notes are truncated at max_chars with a visible notice.

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": {
      "note": "<note>"
    },
    "name": "read_note"
  }
}

Input Schema

NameRequiredDescriptionDefault
rawNo
noteYes
max_charsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/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 burden and does a solid job: it discloses the ambiguous-name error and that full paths are listed, the truncation behavior at max_chars with a visible notice, and exactly what is returned. What it omits is whether the read requires any permission scope or what happens for a nonexistent path, which for a read-only tool is a minor residual gap.

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

Conciseness4/5

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

It is front-loaded with the core action and identifier semantics, then the return shape, then the parameter variants. Every clause carries information, though the paragraphs run dense and could be split more cleanly between return contract and parameter behavior.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter read tool with an output schema, this covers the action, the identifier formats, the failure mode, the return contents, and each non-obvious parameter's effect. Nothing an agent needs in order to call it correctly is missing.

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 coverage is 0%, so the description must compensate, and it does for all three parameters: `note` accepts a vault path, a bare name, or a [[wikilink]] with defined ambiguity behavior, `raw` toggles exact file text including frontmatter, and `max_chars` drives truncation with a visible notice. This is meaning well beyond the schema's bare types and defaults.

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?

'Read one note' is a specific verb+resource, and the description immediately disambiguates it from siblings by naming edit_note and describing what the note identifier may be. An agent can tell this apart from search_notes or query_notes without opening any 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?

It gives explicit conditional guidance for raw=true ('use it before edit_note when you need to change the frontmatter itself'), which is a genuine when-to-use rule tied to a sibling. It stops short of stating when to prefer search_notes or query_notes over reading a single known note, so there is a gap at the top-level routing decision.

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