Skip to main content
Glama

patch_note

Destructive

Edit a specific section of an Obsidian note by targeting a heading or block reference. Append, prepend, or replace content in that section only, leaving the rest of the file unchanged.

Instructions

Surgically edit a section of a note — targeted by heading or block reference — without rewriting the whole file. Operations: append (add after section), prepend (add after heading line), replace (swap section content). Frontmatter is never touched.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesVault-relative path to the note.
targetYesExactly one of: { heading: "Section Title" } or { block: "block-id" } (without the ^ prefix).
contentYesContent to insert or replace with.
prevHashNoOptional compare-and-swap guard: the contentHash from a prior read. Fails with hash_conflict if the note changed since.
operationYesappend: insert after section content. prepend: insert after heading line. replace: swap section content.
createIfMissingNoIf the heading target is not found, append a new heading (level 2) + content. Only valid for heading targets. Default false.
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false. The description adds operational semantics — exact behavior of append, prepend, replace — and the frontmatter constraint, which is useful. It does not mention the prevHash concurrency guard or hash_conflict failure, but those are fully documented in the schema, and there is no contradiction.

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 three compact segments: the main purpose, the operations list, and the frontmatter constraint. It is front-loaded with the core purpose, contains zero fluff, and every sentence earns its place.

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 mutation tool with 6 parameters, the description covers the operational model and key constraints (frontmatter untouched). It omits details like prevHash and createIfMissing, but these are fully specified in the schema, so the description plus schema together provide a complete picture. A small addition like mentioning the concurrency guard would push it higher.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although schema coverage is 100%, the description adds significant meaning beyond the schema by defining what each operation does (append after section, prepend after heading line, replace section content) and clarifying the targeting mechanism (heading or block without ^ prefix). This goes well beyond the schema's individual descriptions.

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?

Clearly states the tool surgically edits a specific section of a note, targeted by heading or block reference, without rewriting the whole file. It identifies three operations (append, prepend, replace) and explicitly notes frontmatter is untouched, distinguishing it from siblings like append_note and patch_frontmatter.

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?

Conveys that it is for targeted, non-rewriting edits and excludes frontmatter, which gives helpful context for choosing this tool. However, it does not name specific alternatives or provide explicit when-to-use/when-not-to-use guidance beyond these implications.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/shaqmughal/seekstone'

If you have feedback or need assistance with the MCP directory API, please join our Discord server