Skip to main content
Glama
mdvault-mcp
by 0xmortuex

create_note

Create a markdown note at a vault-relative path, auto-creating missing folders and optional YAML frontmatter; prevents overwriting existing files unless enabled.

Instructions

Create a note. path is relative to the vault root ('Projects/New Idea.md'; .md is added if missing; missing folders are created). Fails if the file exists unless overwrite=true. frontmatter is an optional object written as a YAML block at the top, e.g. {"status": "draft", "tags": ["project"]}. Warns when another note already has the same name, because plain [[links]] to that name become ambiguous. Paths that leave the vault, pass through symlinks, or touch dot-folders (.git, .obsidian) are refused.

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": "create_note"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
contentNo
overwriteNo
frontmatterNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior5/5

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

With zero annotations, the description carries the full burden and does so well: it discloses implicit folder creation, the .md extension being appended, the overwrite gate, a duplicate-name warning tied to ambiguous [[links]], and a path-safety policy refusing vault escapes, symlink traversal, and dot-folders. These are non-obvious side effects and security constraints an agent could not derive from the schema or annotations.

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?

Dense parenthetical clauses carry parameter rules without a wasted word, and the ordering is sensible: what it does, then path rules, then failure mode, then optional fields, then warnings, then security refusals. Nothing is repeated and the most decision-relevant facts come first.

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?

An output schema exists, so return values need not be described, and the description covers creation semantics, path handling, overwrite behavior, frontmatter format, and safety refusals — enough to call it correctly. The only shortfall is the unexplained 'content' parameter, which leaves a small but real hole for a four-parameter mutation tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, and it does for three of four parameters: 'path' gets relative-to-vault semantics, extension defaulting and folder creation; 'overwrite' is explained via the exists check; 'frontmatter' gets a concrete YAML example. The 'content' parameter is never mentioned, which is a real gap for the field that carries the note body.

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 description opens with a specific verb+resource ("Create a note") and immediately pins down creation-only semantics ("Fails if the file exists unless overwrite=true"), which behaviorally separates it from append_to_note, edit_note, and rename_note. It stops short of naming any sibling or explicitly routing the agent away from them, so it lands just below the top mark.

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?

Conditions for success and failure are spelled out (exists-check, overwrite, refused paths), which implies when the tool is applicable. However, there is no explicit when-to-use versus when-not guidance — nothing tells the agent to prefer append_to_note for existing notes or edit_note for edits — so the agent must infer the routing.

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