Skip to main content
Glama
obsidian-mcp

obsidian-mcp

by LWaetzig

Update Note

obsidian_update_note
DestructiveIdempotent

Overwrite an existing Obsidian note’s full content and frontmatter, or create the note if missing. Use it to replace the entire note body rather than append content.

Instructions

Overwrite the full content of an existing Obsidian note.

Replaces the entire note including frontmatter. Use obsidian_append_to_note to add content non-destructively. Creates the note if it does not exist.

Args:

  • path (string): Vault-relative path to the note

  • body (string): New markdown body content

  • frontmatter (object, optional): New frontmatter (replaces existing frontmatter)

  • response_format: 'markdown' | 'json' (default: 'markdown')

Returns: Updated note metadata.

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>",
      "body": "<body>"
    },
    "name": "obsidian_update_note"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesNew markdown content for the note body
pathYesVault-relative path to the note
frontmatterNoNew YAML frontmatter — replaces existing frontmatter entirely
response_formatNoOutput format: 'markdown' for human-readable, 'json' for machine-readablemarkdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and idempotentHint=true, and the description corroborates rather than contradicts them by spelling out what is destroyed: the entire note including frontmatter. The one meaningful gap is whether omitting the optional frontmatter argument erases existing frontmatter or leaves it untouched — an ambiguous risk detail for a destructive write.

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?

The definition is front-loaded, with the destructive scope and the sibling alternative in the first two sentences, followed by a compact Args list and a one-line Returns. The Args section duplicates schema text, which is mild redundancy, but nothing is buried or wasteful.

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 short "Returns: Updated note metadata" line usefully fills that gap, and the destructive-replace semantics are stated for a fairly simple four-parameter tool. The remaining hole is the frontmatter-omission behavior, which matters for a tool flagged destructive.

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 the schema already documents all four parameters, and the Args block largely restates those descriptions. It adds almost no syntax or format guidance beyond the schema, so the documented baseline of 3 applies.

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 opening sentence gives a specific verb plus resource ("Overwrite the full content of an existing Obsidian note") and immediately scopes the operation as full-content replacement including frontmatter. This makes it clearly distinguishable from obsidian_append_to_note and obsidian_create_note 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 Guidelines5/5

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

It explicitly names the alternative ("Use obsidian_append_to_note to add content non-destructively") and supplies the selecting condition — destructive full replace versus non-destructive append. It also pre-empts the create path by stating the note is created if it does not exist, so the agent need not guess between update and create.

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