Skip to main content
Glama

Engram Obsidian Memory Sync

Find and Replace in Note

patch_note
Destructive

Find and replace text in an existing note. By default replaces the first occurrence. Set occurrence to -1 to replace all.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
findYesExact text to find
pathYesFull path of the note
replaceYesText to replace it with
vault_idNoTarget vault — its name (e.g. "Engram") or its UUID. REQUIRED when you own more than one vault — the server keeps no active-vault state between calls, so it must be passed on every vault-scoped call. Omit only if you have a single vault. Call list_vaults if a name does not resolve.
occurrenceNoWhich occurrence (0=first, 1=second, -1=all)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
replacementsYesOccurrences replaced

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

The description aligns with the destructiveHint=true annotation by saying it modifies an existing note, and it adds useful behavior details: first occurrence by default and -1 replaces all. It does not describe no-match behavior or reversibility, but the annotation and output schema reduce the burden.

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 sentences with no filler. The core action is front-loaded, and the key default behavior is stated immediately afterward.

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 five-parameter tool with full schema coverage and an output schema, the description plus schema is sufficient for correct invocation. The vault_id requirement is thoroughly documented in the schema, and the destructive behavior is covered by annotations.

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 all five parameters are already documented. The description reinforces occurrence semantics but does not add meaning beyond what the schema already provides, so the baseline 3 is appropriate.

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?

The description states the specific action 'Find and replace text in an existing note,' which clearly identifies both the verb and the resource. This distinguishes it from siblings like append_to_note, write_note, and update_section without needing to open the schema.

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?

There is no guidance on when to prefer this tool over related alternatives such as update_section or write_note, and no when-not-to-use conditions. The phrase 'existing note' implies it does not create notes, but that is the only contextual signal.

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.