Skip to main content
Glama
BiteFoundry Obsidian MCP Server

BiteFoundry Obsidian MCP Server

update_frontmatter

Upsert or delete YAML frontmatter properties on an existing note while preserving its body. Use it to update note metadata without rewriting Markdown content.

Instructions

Upsert or remove (null) YAML frontmatter properties on an existing note while preserving its body.

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": {
      "note": "<note>",
      "properties": "<properties>"
    },
    "name": "update_frontmatter"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteYesRelative path, note title, or alias.
vaultNoOptional registered vault name, ID, or path (see list_vaults). Unregistered directories are rejected.
propertiesYesKey-value pairs to merge into YAML frontmatter (null removes key).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/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 burden; it does disclose the important behaviors: merge/upsert rather than replace, null as the deletion signal, and that the note body is left untouched. It omits error behavior for a missing note, whether a new frontmatter block is created when none exists, permission requirements, and what the call returns.

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?

A single front-loaded sentence that states the action, the target, the deletion mechanic, and the safety guarantee with no filler. Every clause earns its place.

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 three-parameter mutation tool with a nested object, no annotations, and no output schema, the description covers the core semantics but leaves the agent guessing about failure modes (nonexistent note, invalid YAML keys) and the shape of the result. Adequate, not complete.

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 note/vault/properties are already documented in the schema, and the description's "(null) removes key" restates the schema wording. It adds no new meaning about the nested properties object, key formats, or vault resolution beyond what structured fields provide, so the baseline 3 applies.

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 pairs specific verbs ("upsert or remove") with a precise resource ("YAML frontmatter properties on an existing note") and adds a scope guarantee ("preserving its body"). That distinguishes it adequately from body-editing siblings like replace_note_text or append_note, though it never names an alternative 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?

"On an existing note" implies the note must already exist, which is a mild precondition, and "preserving its body" implies this is the right tool when only metadata changes. But there is no explicit when-to-use vs. when-not guidance (e.g., use create_note for new notes, read_note to inspect frontmatter), so routing must be inferred.

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