Skip to main content
Glama
Vault Cortex Obsidian MCP Server

Vault Cortex Obsidian MCP Server

Update Properties

vault_update_properties
DestructiveIdempotent

Update a note's properties without rewriting its body. Merge keys shallowly (null deletes) or replace the whole properties block, preserving note content.

Instructions

Update a note's properties. By default they merge shallowly — new keys added, matching keys overwritten, null deletes a key, unmentioned keys preserved. With replace: true they replace the whole properties block: here null writes a property with no value, and {} removes the whole block. The body is kept.

Example: vault_update_properties({ path: "Projects/todo.md", properties: { status: "active", draft: null } }) Example: vault_update_properties({ path: "Projects/todo.md", properties: { title: "Todo", status: "active" }, replace: true })

When to use: Changing tags, status, type, or any property without reading/rewriting the full note body. Prefer vault_write_note when creating a new note, or replacing the body (with overwrite: true). Read current properties first with vault_read_note({ properties_only: true }), or the full note when repairing a properties block the server refused. Arrays are replaced entirely, not appended to.

Errors:

  • "note not found" — path does not exist; create the note first with vault_write_note

  • "path must end in …" — add the .md extension

  • "absolute path blocked" / "path traversal blocked" / "hidden path blocked" — pass a vault-relative path with no dot-prefixed part

  • "concurrent write in progress" — a write to this note is in flight; re-read it and retry

  • "ENAMETOOLONG: …" or another filesystem error — the message says what to do

  • "properties block …" — without replace: true, the merge refuses a block it cannot keep: invalid YAML, a list, a single value, or a YAML type tag such as !!timestamp; the error says how to repair it

  • "the note would open with a properties block …" — a note without properties would start with --- lines around text that can't be properties; the error says how to avoid it

Obsidian syntax: Use arrays for multi-value fields (tags: [a, b]), quote wikilinks ("[[Note]]"), keep types consistent (mismatches cause silent query failures).

Returns: "Updated properties on ", or "Replaced properties on " with replace: true.

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>",
      "properties": "<properties>"
    },
    "name": "vault_update_properties"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesVault-relative path to the note, including the ".md" extension. Use the exact letter case.
replaceNoReplace instead of merging (default: false).
propertiesYesProperties to merge, or with replace the complete new set.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.54.16
    • addedInput schema / additionalProperties
      Added value: +false
  2. Changed2 schema fields changedv0.54.13
    • changedInput schema / properties / properties / description
      Previous value: -"Properties to merge; a null value deletes that key."New value: +"Properties to merge, or with replace the complete new set."
    • addedInput schema / properties / replace
      Added value: +{
      +  "default": false,
      +  "description": "Replace instead of merging (default: false).",
      +  "type": "boolean"
      +}
  3. Changed1 schema field changedv0.54.9
    • changedInput schema / properties / properties / description
      Previous value: -"Properties to merge. New keys are added; existing keys are overwritten; a null value deletes that key; unmentioned keys are preserved."New value: +"Properties to merge; a null value deletes that key."
  4. Changed1 schema field changedv0.54.7
    • changedInput schema / properties / path / description
      Previous value: -"Vault-relative path to the note, including the \".md\" extension"New value: +"Vault-relative path to the note, including the \".md\" extension. Use the exact letter case."
  5. Addedv0.32.1
  6. Removedv0.32.0
  7. Changed1 schema field changedv0.23.10
    • changedInput schema / properties / path / description
      Previous value: -"Vault-relative path to the note"New value: +"Vault-relative path to the note, including the \".md\" extension"
  8. Changed1 schema field changedv0.15.23
    • changedInput schema / properties / properties / description
      Previous value: -"Properties to merge. New keys are added; existing keys are overwritten; unmentioned keys are preserved."New value: +"Properties to merge. New keys are added; existing keys are overwritten; a null value deletes that key; unmentioned keys are preserved."
  9. Added

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, but the description goes well past them: shallow merge defaults, null-deletes-a-key, replace-mode null and {} semantics, array replacement rather than append, and a full error catalogue including concurrent-write, path-blocking, and YAML refusal cases with repair guidance.

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?

Structure is strong: mutation semantics first, then paired examples, then when-to-use, errors, syntax, and return shape. The error catalogue is long but each entry maps to a distinct failure an agent must recover from, so it earns most of its space, though it makes the definition dense.

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

Completeness5/5

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

For a nested-object mutation tool with no output schema, the description covers everything needed to call it correctly: mode semantics, examples, alternatives, error recovery, Obsidian quoting/array conventions, and the literal return strings.

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

Parameters5/5

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

Schema coverage is 100% so the baseline is 3, but the schema's own wording for `properties` and `replace` is terse; the description supplies the semantics that actually determine behavior — what null means in each mode, what {} does under replace, and that arrays are overwritten wholesale.

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 names a specific verb and resource ('Update a note's properties') and immediately clarifies the scope constraint that matters most ('The body is kept'), which separates it from vault_patch_note and vault_write_note at a glance.

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?

An explicit 'When to use' line covers tags, status, type and any property edit without a body rewrite, and it names alternatives with their conditions ('Prefer vault_write_note when creating a new note, or replacing the body'). It also prescribes a read-first workflow with vault_read_note({ properties_only: true }) for the repair case.

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