Skip to main content
Glama
obsidian-mcp-server

obsidian-mcp-server

by mpesavento

Read/Update Frontmatter

vault_frontmatter

Read or atomically update specific YAML frontmatter fields in an Obsidian note while leaving body content unchanged; omit updates to retrieve current frontmatter.

Instructions

Read or atomically update specific YAML frontmatter fields on a note without touching the body content. If 'updates' is omitted, returns the current frontmatter. If provided, merges the updates into existing frontmatter.

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

Input Schema

NameRequiredDescriptionDefault
pathYesVault-relative path to the note
updatesNoKey-value pairs to merge into frontmatter (e.g. { tags: ['exobrain/decision'], type: 'decision' })

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses atomic updates, merging behavior, and that the body is not touched, but it lacks details on permissions, error behavior, how nested keys are merged, and whether fields can be removed.

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?

Two concise sentences, front-loaded with the core purpose and followed by the conditional behavior. There is no redundant or filler wording.

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?

The definition is mostly complete for a two-parameter tool, but because no output schema exists, it should more explicitly describe what an update operation returns. It also leaves merge semantics for nested object values unspecified.

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 100%, so the baseline is 3. The description adds meaningful semantics beyond the schema by clarifying that omitting 'updates' triggers a read and providing it triggers a merge into existing frontmatter.

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 clearly states a specific verb and resource: reading or atomically updating YAML frontmatter fields on a note. It distinguishes itself from general note read/write operations by emphasizing frontmatter-only changes and that body content is untouched, though it does not explicitly name sibling tools.

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?

It explains the two modes based on whether 'updates' is omitted or provided, which gives conditional usage guidance. However, it does not state when to prefer this tool over alternatives such as vault_read, vault_patch, or vault_write.

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