Skip to main content
Glama
Obsidian MCP Server
by Kynlos

multi_file_replace

Batch find and replace text across multiple Obsidian notes by specifying the search string, replacement text, and target filenames.

Instructions

Batch find/replace across multiple notes

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": {
      "find": "<find>",
      "replace": "<replace>",
      "filenames": "<filenames>"
    },
    "name": "multi_file_replace"
  }
}

Input Schema

NameRequiredDescriptionDefault
findYesText to find
replaceYesReplacement text
filenamesYesFiles to process

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0

TDQS

C2.7/5.0
Behavior1/5

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

With no annotations, the description carries the entire burden for a destructive multi-file write, yet discloses nothing: not whether changes are reversible or atomic, whether a partial failure leaves files half-edited, whether write permission is needed, or whether matches are literal or regex. The single phrase 'find/replace' gives no behavioral context beyond the name.

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?

One front-loaded sentence with no filler or redundancy. Its brevity is efficient, though part of that economy comes from omitting genuinely necessary information rather than from tight writing.

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?

This is an unannotated multi-file mutation with no output schema, so the definition should clarify side effects and the response shape (e.g., count of replacements). It leaves the agent unable to predict consequences of invocation, which is inadequate for a batch write operation.

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 'find', 'replace', and 'filenames' are already documented in the schema, establishing the baseline of 3. The description adds no extra meaning such as whether 'filenames' are vault-relative paths, whether globs are allowed, or whether 'find' is treated as a regex.

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 action (batch find/replace) plus the resource and scope (multiple notes), which is clearer than a bare name restatement. It never distinguishes itself from the sibling 'regex_search_and_replace' or mention how scope differs from single-note editing, so it stops short of full disambiguation.

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?

The word 'batch' implies the tool is for multi-file work, but there is no explicit when-to-use statement, no when-not, and no named alternative despite 'regex_search_and_replace' existing as an obvious sibling. An agent must guess whether this does literal or pattern matching.

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