Skip to main content
Glama

patch_note

Edit a specific section of an Obsidian note by heading or block reference. Perform append, prepend, or replace operations on targeted content without altering the entire file or frontmatter.

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).
operationYesappend: insert after section content. prepend: insert after heading line. replace: swap section content.
contentYesContent to insert or replace with.
createIfMissingNoIf the heading target is not found, append a new heading (level 2) + content. Only valid for heading targets. Default false.
Behavior3/5

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

No annotations are provided, so the description carries full burden. It discloses that frontmatter is never touched and defines three operations. However, it does not mention error handling, permissions, or what happens on failure. This is adequate but not comprehensive.

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, no wasted words. The critical information (targeting method, operations, frontmatter rule) is front-loaded. Every sentence adds value.

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?

The description covers all parameters, operations, and key constraints (frontmatter untouched, createIfMissing only for headings). Without an output schema, return values are not explained, which is acceptable. For a 5-parameter tool with no annotations, the description is almost complete.

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%, but the description adds significant value by explaining operation behaviors ('append: insert after section content') and constraints on createIfMissing ('Only valid for heading targets'). This goes beyond the schema's brief 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?

The description uses strong verbs ('Surgically edit', 'targeted by heading or block reference') and clearly distinguishes from siblings like append_note (appends to end) and create_note (new file). It specifies the resource (section of a note) and the scope (no frontmatter).

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 description implies use for targeted edits without rewriting the whole file, but does not explicitly state when not to use it (e.g., for full rewrites use write_note) or mention alternatives. It provides operational context but lacks clear exclusion guidance.

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