Skip to main content
Glama
bezata

kObsidian MCP

by bezata

Edit Frontmatter

notes.frontmatter
Idempotent

Set or unset YAML frontmatter fields in Obsidian notes, merging or replacing existing metadata with an idempotent operation.

Instructions

Set or unset fields in a note's YAML frontmatter. set is a map of {field: value} pairs to write; unset is a list of field names to delete. strategy:'merge' (default) leaves unspecified fields untouched; strategy:'replace' overwrites the entire frontmatter block with set (any field not in set is dropped). At least one of set or unset is required. Idempotent — re-running with the same arguments converges on the same frontmatter state.

Operates on the session-active vault (see vault.current — selectable via vault.select) unless an explicit vaultPath argument is passed, which always wins.

Examples:

Example 1 — Set two fields, merging with existing frontmatter:

{
  "path": "Projects/Alpha.md",
  "set": {
    "status": "in-progress",
    "owner": "behzat"
  }
}

Example 2 — Remove a field:

{
  "path": "Projects/Alpha.md",
  "unset": [
    "draft"
  ]
}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
setNoMap of frontmatter fields to set. Values overwrite any existing entry.
pathYes
unsetNoField names to delete from the frontmatter.
strategyNo`merge` (default) = combine with existing frontmatter; `replace` = overwrite the whole frontmatter block with `set` (ignores existing unspecified fields).merge
vaultPathNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetYesThe path or identifier the tool acted on.
changedYesTrue if the tool altered vault state on this call; false if it was a no-op.
summaryYesShort human-readable summary of what happened.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed2 schema fields changedv0.3.5
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Addedv0.1.2

TDQS

A4.2/5.0
Behavior4/5

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

The description adds substantial behavioral context beyond the annotations: it explains the merge vs replace strategies, the requirement for at least one of set/unset, and the vault selection precedence. It also confirms idempotency, aligning with the idempotentHint annotation. No contradiction exists.

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?

The description is well-organized: it starts with the core operation, then covers strategy, requirements, idempotency, vault behavior, and provides two clear examples. It is thorough without being bloated, though slightly longer than strictly necessary.

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 tool with 5 parameters and nuanced merge/replace behavior, the description covers all key aspects: set/unset semantics, strategy selection, the requirement, idempotency, vault path precedence, and examples. Since an output schema exists, return-value details are handled there, so nothing essential is missing.

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 coverage is 60%, and while the schema already describes set, unset, and strategy, the description clarifies the semantics further: it explains what 'merge' and 'replace' do to unspecified fields, and it details the requirement that at least one of set/unset be present. It also adds meaning to vaultPath by explaining its precedence over the session-active vault.

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 description clearly states the verb (set/unset) and resource (YAML frontmatter of a note), and precisely distinguishes between the two operations. It also differentiates from sibling tools like notes.edit or dataview.fields.write by focusing specifically on frontmatter manipulation.

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 description implies when to use the tool (when you need to edit frontmatter fields) but does not explicitly mention alternatives or when not to use it. There is no reference to sibling tools like dataview.fields.read or notes.edit, so the selection guidance is implicit rather than explicit.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bezata/kObsidian'

If you have feedback or need assistance with the MCP directory API, please join our Discord server