Skip to main content
Glama
Obsidian MCP Server
by Kynlos

update_frontmatter_field

Edit a specific YAML frontmatter field in an Obsidian note without rewriting the entire file, so the rest of the note stays intact.

Instructions

Edit specific YAML field without rewriting note

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": {
      "filename": "<filename>",
      "field": "<field>",
      "value": "<value>"
    },
    "name": "update_frontmatter_field"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldYesFrontmatter field name
valueYesNew value for field
filenameYesNote filename

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose one useful trait — the rest of the note is preserved rather than rewritten — but says nothing about whether a missing field is created, whether a missing note errors, whether values are stringified, or whether the edit is reversible.

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?

A single front-loaded clause with no filler and the non-destructive guarantee stated up front. It is efficient, though the terseness contributes to the gaps in guidance rather than compensating for them.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an unannotated write operation against a vault file, the definition leaves key unknowns: behavior when the field or file does not exist, type handling for the value, and any confirmation or failure mode. With no output schema to fall back on, these gaps are exposed to the agent.

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 description coverage is 100%, so filename, field, and value are already documented in the schema. The description adds no extra semantics such as accepted value types (arrays, nested keys, null-to-delete) or field-name formatting beyond what the schema provides.

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 ('Edit specific YAML field') plus a scope guarantee ('without rewriting note'), which is enough to distinguish it from a full note rewrite. It never names or contrasts with close siblings like batch_update_metadata or update_note, so differentiation is implied rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No indication of when to use this versus batch_update_metadata (multiple fields at once) or update_note (content edits). The agent must infer from names alone, and there is no mention of prerequisites such as the note needing existing frontmatter.

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