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 YAML properties without rewriting its body: merge new keys by default, delete keys with null, or replace the whole properties block using replace: true.

Instructions

Update a note's properties, merging into the existing ones by default or replacing the whole properties block with replace: true. 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.

Behavior:

  • By default properties merge shallowly — new keys added, matching keys overwritten, null deletes a key, unmentioned keys preserved. Arrays are replaced entirely, not appended to.

  • With replace: true, null writes a property with no value, and {} removes the whole block.

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.1/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is covered. The description adds genuinely new behavior beyond that: shallow merge semantics, null-deletes-a-key, arrays replaced not appended, and replace:true behavior where null writes an empty value and {} removes the block. That is real added value rather than restatement.

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?

Front-loaded with two concrete call examples, then labeled sections for usage, behavior, errors, and returns — easy to scan. The long error enumeration is the one place it verges on bloat, though each entry maps to a distinct failure the agent must handle.

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?

There is no output schema, so the description correctly states the return strings for both modes. Combined with the merge/replace semantics and the error-to-remedy mapping, an agent has enough to call and recover; the only small gap is nothing about whether concurrent-write retries are safe to loop on.

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 100%, so path and replace are already documented structurally, making 3 the baseline. The description does go past the schema by explaining that null is a deletion signal under merge but a valueless property under replace, and that {} clears the block — semantics the schema's generic object type cannot express.

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?

States a specific verb and resource ("Update a note's properties") and immediately bounds scope with "The body is kept." It names the sibling tools it is not (vault_write_note, vault_read_note) so an agent can distinguish it without opening another 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?

Has an explicit "When to use" line plus a routing rule: "Prefer vault_write_note when creating a new note, or replacing the body." It also prescribes a prerequisite read via vault_read_note({ properties_only: true }), which is exactly the when/when-not/alternative structure the dimension rewards.

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