Skip to main content
Glama
obsidian-mcp

obsidian-mcp

by Soleil1043

read_note

Read an Obsidian note's complete Markdown source, including frontmatter, using its vault-relative .md path; returns file size and modification time.

Instructions

读取 Obsidian vault 中一篇笔记的完整 Markdown 内容(UTF-8 原文,含 frontmatter),并返回文件大小与修改时间。路径为 vault 内相对路径,必须以 .md 结尾。

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

Input Schema

NameRequiredDescriptionDefault
pathYes要读取的笔记路径(vault 内 POSIX 风格相对路径,需以 .md 结尾)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations and no output schema, the description carries the full burden and does well: it discloses exactly what is returned (raw UTF-8 Markdown including frontmatter, plus size and mtime) and constrains the input to vault-relative .md paths. It stops short of covering failure modes (nonexistent note, path escaping the vault) or size limits for very large notes.

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?

A single dense sentence that front-loads the action, the payload, and the return values before the path constraint. No wasted clauses, though the mtime/size detail could read as slight over-specification for a read tool.

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 one-parameter read tool with no annotations and no output schema, the description covers input format, returned content, and metadata, which is enough to invoke it correctly. Missing only error/edge-case behavior, which is a minor gap at this complexity.

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 coverage is 100% and the single path parameter is already documented as a POSIX-style vault-relative path ending in .md, so the description largely restates the schema. Baseline 3 is appropriate since 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?

Names a specific verb+resource: read one note's full Markdown content from an Obsidian vault, and states what comes back (UTF-8 raw text with frontmatter, file size, modification time). It implicitly distinguishes itself from list_notes/search_notes by scoping to a single note at a known path, though it never explicitly contrasts with those siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is only implied: give a vault-relative path that ends in .md and get the note body. There is no explicit when-to-use versus search_notes/list_notes guidance, and no note about what happens for missing files or non-.md paths.

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