Skip to main content
Glama

write_note

Replace a note's entire content or create it if missing; optionally preserve existing frontmatter properties when the new content has none.

Instructions

Replace the whole content of a note (creates it if missing). keep_frontmatter keeps the existing properties when your content has none.

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": {
      "file": "<file>",
      "content": "<content>"
    },
    "name": "write_note"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYes
vaultNoVault name, id or folder path (see list_vaults). Default: OBSIDIAN_VAULT or the vault open in Obsidian.
contentYes
keep_frontmatterNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

The description carries the critical disclosure that this is a full-content overwrite (existing note body is lost) plus the create-if-missing behavior, neither of which is derivable from the annotations. Note the mild tension with destructiveHint=false, though overwriting content is a plausible reading of a non-deleting write, so this is disclosed risk rather than a contradiction.

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?

Two short, front-loaded sentences with no waste; the destructive overwrite semantic comes first. The keep_frontmatter clause is slightly cryptic ("when your content has none") and could be reworded for instant parsing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with no output schema, the definition covers overwrite and creation semantics but omits what happens to the response, whether missing parent folders are created, and how `file` is resolved relative to the vault. Adequate but leaves real gaps for a write operation.

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 only 25% (only `vault` is documented), so the description must compensate. It does partially: it explains keep_frontmatter's conditional behavior and frames `content` as a full replacement, but `file` path resolution and the vault default interplay are left entirely unexplained.

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 ("Replace the whole content of a note") and adds the important creation side effect. "Whole content" implicitly distinguishes it from append_to_note, prepend_to_note, and replace_in_note, though no sibling is named explicitly.

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?

The parenthetical "creates it if missing" tells the agent it doesn't need create_note first, which is useful routing information. However there is no explicit when-to-use/when-not guidance against append_to_note or edit_note, leaving the choice to inference from the word "whole".

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

Deploy Server

Other Tools