Skip to main content
Glama

update_frontmatter

Merge properties into an Obsidian note's frontmatter, create frontmatter when missing, and remove keys by setting null while leaving other keys and the note body unchanged.

Instructions

Merge properties into a note's frontmatter (creates it if absent). A null value removes that key. Other keys and the body are untouched.

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

Input Schema

NameRequiredDescriptionDefault
setNo
fileYesNote path ("Folder/Note.md"), path without .md, note name, alias, or [[wikilink]]
vaultNoVault name, id or folder path (see list_vaults). Default: OBSIDIAN_VAULT or the vault open in Obsidian.
removeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations only supply generic hints (readOnlyHint=false, destructiveHint=false, idempotentHint=false); the description adds genuinely non-obvious behavior: it merges rather than replaces, creates the block when missing, and null-valued keys are deleted. It leaves gaps on what happens to `remove` targets that don't exist and on whether a nonexistent note is created or errors, but the merge/delete semantics are real value beyond the annotations.

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 tight sentences, front-loaded with the core action, then the edge-case rule. Nothing is redundant and every clause carries information.

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 4-parameter mutation with a nested object and no output schema, the definition covers the main semantics but omits the `remove` parameter, error/creation behavior for a missing note, and any indication of what is returned. Adequate but with clear gaps.

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 50%: file and vault are documented, while set and remove are bare. The description partially compensates by explaining that null values inside the property set delete keys, which is a meaningful addition over the schema, but the `remove` array is never mentioned at all.

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?

States a specific verb and resource ("Merge properties into a note's frontmatter") and pins the placement (frontmatter, not body). It implies single-note scope versus the batch_update_frontmatter sibling but never names or explicitly contrasts with it, so sibling differentiation is left to inference.

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?

Useful operational context is given (merge not replace, creates if absent, null deletes a key), which tells an agent when this is the right call. However, there is no explicit statement of when to prefer get_frontmatter or batch_update_frontmatter instead, or any prerequisite/auth guidance.

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

Deploy Server

Other Tools