Skip to main content
Glama

batch_update_frontmatter

Destructive

Set or remove properties across many notes at once using folder, glob, tag, file, or property filters, with a dry run by default to preview changes.

Instructions

Set and/or remove properties on many notes at once (filter by folder, glob, tag, files or has_property). dry_run defaults to true.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "batch_update_frontmatter"
  }
}

Input Schema

NameRequiredDescriptionDefault
setNo
tagNoOnly notes with this tag (nested tags included)
globNo
filesNo
vaultNoVault name, id or folder path (see list_vaults). Default: OBSIDIAN_VAULT or the vault open in Obsidian.
folderNoLimit to this folder (vault-relative)
removeNo
dry_runNo
has_propertyNo
only_if_missingNoOnly set keys a note does not already have

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 already declare destructiveHint=true and readOnlyHint=false, so the safety profile is covered, and the description usefully adds that dry_run defaults to true — a behavioral fact absent from the schema (the dry_run property carries no description or default). It does not disclose what a destructive 'set' does to an existing property value (overwrite vs merge) or whether a dry run returns a preview payload.

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 short sentences, zero filler, with the core operation and scope front-loaded and the filter options parenthetically grouped. The dry_run default is placed last where it reads as a caveat rather than clutter.

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 10-parameter, nested-object, destructive mutation with no output schema and no annotations default values, the definition is thinner than the tool's complexity warrants. Nothing explains the expected shape of `set` (key-to-value map) versus `remove` (list of keys), nor what a dry run returns, which are the two things an agent most needs before firing a destructive batch.

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 only 40% across 10 parameters, so the description has to carry more weight than it does. It does add meaning for five parameters by framing folder/glob/tag/files/has_property as alternative filter criteria and by documenting dry_run's default, but set, remove, only_if_missing, and vault receive no semantic explanation in either place beyond their names.

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 pair (set and/or remove) and resource (properties on notes) with an explicit batch scope of 'many notes at once', which implicitly separates it from the single-note update_frontmatter sibling. It also enumerates the five filtering strategies in parentheses, so an agent can tell what shape of request this tool accepts without opening the schema. It stops short of naming update_frontmatter outright as the single-note alternative.

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 'many notes at once' phrasing and the filter list imply the tool is for bulk edits scoped by folder/tag/glob/file list/has_property, which is actionable context. However, there is no explicit when-not-to-use guidance and no named alternative for editing a single note's frontmatter, leaving the agent to infer that boundary from the sibling list.

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