Skip to main content
Glama

Shard Connector for Obsidian

Edit note text

patch_note
Destructive

Edit a note in the Obsidian vault by replacing exact text. Obsidian Sync only syncs .md, .canvas and .base files here, so other extensions such as .txt fail. Read the note with read_note to get the exact text. To make several changes to one note, pass them all in edits in one call. 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": "patch_note"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesvault-relative note path, as returned by list_files or search_notes, or an obsidian:// URL for a file in this vault
editsNoseveral edits to this note, applied in order, each to the result of the previous one; if one fails, nothing is written. Use instead of old_text, new_text and replace_all
new_textNoreplacement text; empty deletes old_text
old_textNoexact text to replace; must match exactly once unless replace_all is set. Leave empty when using edits
replace_allNoreplace every occurrence of old_text

Output Schema

NameRequiredDescriptionDefault
pathYesvault-relative path of the note
statusYesuploaded: Obsidian Sync has the edit. waiting_for_upload: the edit is saved, and Obsidian Sync uploads it within 30s, because it holds back a note's next upload for 10 to 30s after the last one. upload_pending: the edit is saved, but its upload wasn't confirmed within 35s, or an earlier edit of the note is still queued, for example because the server is reconnecting to Obsidian Sync; it uploads once the connection is back
uploadedYeswhether Obsidian Sync has the edit; if false the edit is saved and still queued for upload, as status explains
replacementsYesnumber of occurrences replaced, over all edits

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

The description adds substantial behavior beyond the annotations: it discloses Obsidian Sync file-extension limitations, upload completion timing, and the upload_pending and waiting_for_upload status outcomes. These details are important for an agent to understand the tool's asynchronous sync behavior and failure modes.

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?

The description is front-loaded with the core action, then moves through prerequisite reading, batching guidance, and sync return behavior. Despite covering several operational details, each sentence adds information an agent needs to invoke the tool correctly.

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

Completeness5/5

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

Given the presence of annotations, an output schema, and full schema description coverage, the description is complete for this tool. It covers purpose, exact-text prerequisite, batching, sync constraints, and return timing without needing to restate parameter details already in the schema.

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 schema already documents all parameters. The description adds practical semantics by explaining that old_text must be obtained via read_note and that multiple edits should be passed together in edits, which is useful guidance beyond the schema alone.

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 a specific verb and resource: 'Edit a note in the Obsidian vault by replacing exact text.' It also distinguishes the operation from reading by pointing to read_note for obtaining exact text, so the agent can tell it is a text-replacement edit tool rather than a general note writer.

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

Usage Guidelines4/5

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

It gives clear usage context: read_note is required first to get exact text, and multiple changes should be batched into edits in one call. It does not explicitly state when to use this instead of write_note or add_to_note, but the exact-text replacement scope is clear.

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