Skip to main content
Glama
obsidian-mcp

obsidian-mcp

by LWaetzig

Create Note

obsidian_create_note

Create a new Obsidian note with Markdown content and optional YAML frontmatter; parent folders are created automatically, and you can choose to overwrite an existing note.

Instructions

Create a new Obsidian note. Fails by default if the note already exists.

Parent folders are created automatically. Frontmatter is serialized as YAML at the top of the file. Use overwrite=true to replace an existing note.

Args:

  • path (string): Vault-relative path for the new note, e.g. "projects/new-idea"

  • body (string): Markdown content for the note body

  • frontmatter (object, optional): Key-value pairs to include as YAML frontmatter

  • overwrite (boolean): Replace the note if it already exists (default: false)

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

Returns: Metadata of the created note.

Errors:

  • "Note already exists" if the note exists and overwrite=false

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

Input Schema

NameRequiredDescriptionDefault
bodyYesMarkdown content for the note body
pathYesVault-relative path for the new note
overwriteNoReplace the note if it already exists
frontmatterNoYAML frontmatter key-value pairs
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/5.0
Behavior4/5

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

Adds real context beyond the annotations: parent folders are auto-created, frontmatter is serialized as YAML at the top of the file, and the exact error string for the exists collision. One gap worth noting is that overwrite=true silently replaces existing content while destructiveHint=false — the description should call out that overwrite is irreversible.

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?

Front-loaded with the purpose and the key failure rule, then scannable Args/Returns/Errors blocks. The param restatement is mildly redundant with the schema but conventional and easy to skim.

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 definition covers the important gaps: creation behavior, folder creation, frontmatter handling, overwrite, and the error case. 'Returns: Metadata of the created note' is thin — enumerating the returned fields would close the last gap.

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 five parameters, and the Args block largely restates it. The one genuine addition is the concrete path example ('projects/new-idea'), which clarifies vault-relative formatting.

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?

States a specific verb and resource ('Create a new Obsidian note') and immediately pins down the default semantics ('Fails by default if the note already exists'). This implicitly separates it from update/append siblings, though it never names an alternative explicitly.

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?

Gives a clear selection rule: create fails when the note exists, so use overwrite=true to replace. That is actionable guidance for the create-vs-update decision. It stops short of naming obsidian_update_note or obsidian_append_to_note as the alternatives for editing existing notes.

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