Skip to main content
Glama

read

Read-only

Retrieve a note's frontmatter, outline, and body, or select a specific heading or line range, from an Obsidian-compatible Markdown vault to surface project memory and documentation.

Instructions

Read a note: frontmatter, outline and body (or one section / line range).

The whole body is cut at 20,000 characters (truncated: true); then use heading or lines. The outline (each heading with "line" and "end") comes only with the whole note, or always with outline=true; content=false returns just frontmatter and outline. Returns JSON {"path", "frontmatter", "fm_valid", "outline" (when included), "content", "truncated", "total_lines", "range" (with heading or lines: "first-last" file lines)}. With notes, returns JSON {"notes": [one object per note as above, without outline unless outline=true; a note that fails is {"note", "error"}], "pending": [notes left out once the output passes 50,000 characters; call read again with them]}.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "read"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoVault-relative path (with or without .md) or a note name / alias. For several notes use notes.
linesNo1-based inclusive line range of the file, "10-40".
notesNoSeveral notes to read whole in one call (up to 20), instead of note. heading and lines do not apply.
contentNofalse returns only frontmatter and outline (each heading with its line and end), to pick a section before reading.
headingNoReturn only this section (case-insensitive).
outlineNoInclude the heading outline. Default: only when reading the whole note.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.16.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true, and the description adds substantial behavior: a 20,000-character body cap with a 'truncated' flag, outline inclusion rules, a 50,000-character output ceiling that spills notes into 'pending', and per-note failure objects {"note", "error"}. That is exactly the kind of limit and failure disclosure annotations cannot carry. It omits what happens when a single named note does not exist, which keeps it below 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.

Conciseness3/5

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

The lead sentence is well front-loaded and the truncation guidance follows logically, but the return-value paragraph is a dense nest of parentheses and inline JSON that is hard to parse on a first read. Given there is no output schema, some of this is necessary, yet the structure could be flatter and shorter.

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 no output schema, the description correctly takes on the burden of explaining return fields, truncation, batching, the pending overflow list, and per-note errors. For a six-parameter read tool with optional parameters and batch mode, that is nearly complete. The main gap is error behavior for a single nonexistent note or invalid heading.

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%, so all six parameters are already documented, including defaults and the mutual exclusion of notes versus note/heading/lines. The description restates those interactions (content=false, outline default, notes ignoring heading/lines) rather than adding new semantics. Baseline 3 is appropriate when the schema does the heavy lifting.

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 first sentence states a specific verb and resource plus scope: 'Read a note: frontmatter, outline and body (or one section / line range).' An agent can immediately tell this is the content-retrieval tool rather than a search or metadata tool. It stops short of naming or contrasting a sibling such as search, so it is clear but not fully differentiated.

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 concrete workflow guidance: when the body is cut at 20,000 characters 'then use heading or lines', and content=false is recommended 'to pick a section before reading'. It also tells the agent to call read again with the 'pending' notes on batch overflow. There is no explicit statement of when not to use this tool versus alternatives, so it stops at clear context rather than full routing.

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