Skip to main content
Glama

Shard Connector for Obsidian

Edit note properties

edit_frontmatter
DestructiveIdempotent

Set or delete properties in a note's frontmatter (YAML properties) without quoting YAML. Adds a frontmatter block if the note has none. A value replaces the whole property; to add a tag, pass the full list. Tags lose a leading #. Dates are strings like 2026-11-03. Changing a property removes a # comment at the end of its line, so status: draft # check later becomes status: done; other lines stay as they were. Returns all properties after the edit. Returns once Obsidian Sync has the edit, or after about 35s with status upload_pending. A repeat edit within 10 to 30s of the note's last upload returns at once with status waiting_for_upload; it still uploads.

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

Input Schema

NameRequiredDescriptionDefault
setNoproperty name to value (string, number, bool, null or list; avoid objects, which Obsidian shows as raw JSON and can't edit in the Properties view). Adds the property or replaces its whole value
pathYesvault-relative path of an existing .md note, as returned by list_files or search_notes, or an obsidian:// URL for a file in this vault
deleteNoproperty names to remove

Output Schema

NameRequiredDescriptionDefault
pathYesvault path of the note
sha256Yeshex SHA-256 of the note after the edit
statusYesuploaded, waiting_for_upload or upload_pending, as patch_note reports them
changedYesproperties added, replaced with a different value, or deleted
uploadedYeswhether Obsidian Sync has the edit; if false the edit is saved and still queued for upload, as status explains
not_foundYesproperties in delete that the note doesn't have
propertiesYesevery property of the note after the edit

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing whole-value replacement semantics, tag # stripping, comment removal on the edited line only, the full property list return, and detailed Obsidian Sync timing (35s upload_pending, 10-30s waiting_for_upload that still uploads). This adds real context that destructiveHint/idempotentHint cannot convey. Slightly short of a 5 only because the destructive impact (comment deletion) is stated as a mechanic rather than flagged as a caution.

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?

Purpose is front-loaded in the first sentence, followed by ordered behavioral rules and return behavior. Dense but nearly every clause carries non-obvious information; only the sync-timing detail is somewhat verbose relative to the rest.

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

Completeness4/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 an output schema and destructive/idempotent annotations, this covers the risky edge cases (YAML quoting, comments, tags, dates, sync timing) thoroughly. The remaining gap is guidance on choosing this over body-editing siblings.

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 100%, so the baseline is 3, but the description adds genuine meaning: set replaces the whole property (so tags require the full list), tags lose a leading #, and dates use the 2026-11-03 string form. The delete parameter is left entirely to the schema, keeping it from a 5.

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?

States a specific verb pair ("Set or delete") on a specific resource ("properties in a note's frontmatter (YAML properties)") and adds the distinguishing trait "without quoting YAML," which separates it from writing note body content via siblings like patch_note or write_note.

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?

Usage is implied through the resource (frontmatter properties) and the rules given for set/delete, but the description never states when to pick this over patch_note/write_note or what the preconditions are beyond "existing .md note" in the schema. No explicit exclusions or alternative routing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources