Skip to main content
Glama
obsidian-mcp-server

obsidian-mcp-server

by mpesavento

Write Note

vault_write

Create or overwrite an Obsidian vault note with auto-managed timestamps and attribution; omit frontmatter to preserve existing fields, or provide it to replace them.

Instructions

Create or overwrite a note. Auto-manages created/modified timestamps and created_by/last_modified_by in frontmatter. If the file exists, preserves original created/created_by values, and keeps its existing frontmatter when you pass none. A non-empty frontmatter object REPLACES the existing fields (use vault_frontmatter to change individual fields).

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>",
      "content": "<content>"
    },
    "name": "vault_write"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesVault-relative path for the note
contentYesMarkdown body content
agent_nameNoAgent name for attribution (defaults to server config)
create_dirsNoCreate parent directories if they don't exist
frontmatterNoFrontmatter for the note (created/modified/created_by/last_modified_by are auto-managed). Omit to keep an existing note's frontmatter; if given, it replaces the existing fields.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.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 full behavioral burden and does so well: it discloses auto-managed timestamps and attribution fields, preservation of original created/created_by values on overwrite, frontmatter retention when none is passed, and replacement semantics for non-empty frontmatter. It does not mention permissions, error behavior, or return values, which are notable gaps for a write tool without an output schema.

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?

The description is four sentences, front-loaded with the core action and followed by the most important behavioral caveats. Every sentence adds useful information without repetition or 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 write tool with no annotations and no output schema, the description covers the key mutation semantics and frontmatter handling thoroughly. It is missing return-value or error-handling expectations, but the core behavior an agent needs to call it correctly is present.

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%, so the schema already documents all five parameters. The description adds the alternative tool for individual frontmatter edits and reiterates replacement semantics, but most of its parameter-related detail is already present in the schema's frontmatter description. Baseline 3 is appropriate.

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?

The description states a specific verb and resource: 'Create or overwrite a note.' It distinguishes the operation from appending or patching by explicitly covering creation and full overwrite, and it names vault_frontmatter as the alternative for individual field changes.

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?

The description gives clear context for when to use this tool: creating or overwriting a note. It also routes the agent to vault_frontmatter when only individual frontmatter fields need changing. It does not explicitly exclude or compare against vault_append or vault_patch, so it stops short of full when/when-not guidance.

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