Skip to main content
Glama

Edit part of a hand-written note

brain_edit
Destructive

Edit a note under Notes/ or Captures/ without rewriting it: replace exact text, replace a section by heading, or append Markdown. Generated notes and the memory file cannot be edited.

Instructions

Change part of a note under Notes/ or Captures/ without rewriting it. Give exactly one of: old_text + new_text (old_text must occur exactly once; new_text may be empty), section + content (replaces everything under that heading up to the next heading of the same or higher level; the heading itself stays), or append. Generated notes and the memory file cannot be edited.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteYesNote id (vault path), title or [[wikilink]]
appendNoMarkdown to add at the end of the note
contentNoNew text for that section
sectionNoHeading text of the section to replace, without the # marks
new_textNo
old_textNoExact text to replace; must occur exactly once

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, so safety is partly covered. The description adds valuable behavior beyond them: the exactly-once precondition on old_text (a concrete failure mode), the heading-level replacement rule ('up to the next heading of the same or higher level; the heading itself stays'), and explicit exclusions. It omits any permission/auth requirements, hence not a 5.

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?

Three tight sentences, front-loaded with purpose before the operational rules. Every clause carries information (scope, modes, preconditions, exclusions) with no filler.

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 6-param mutation tool with no output schema and annotations already covering the safety profile, the description covers modes, preconditions, and exclusions. It doesn't state what happens on precondition failure (e.g., ambiguous old_text) or any return shape, but nothing critical for invocation is missing.

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 83%, so baseline is 3, and the description clearly exceeds it by explaining mode exclusivity and mode-specific semantics: old_text must occur exactly once, new_text may be empty, section replaces content up to the next same-or-higher heading while keeping the heading, and append adds at the end.

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?

States a specific verb+resource ('Change part of a note') and immediately scopes it to Notes/ or Captures/ and distinguishes it from a full rewrite, which implicitly separates it from brain_write. An agent can tell it does partial edits, not whole-note replacement, without opening 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 Guidelines4/5

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

It gives explicit usage rules: 'Give exactly one of' three mutually exclusive modes, and states what cannot be edited (generated notes, the memory file). It doesn't name a sibling tool directly, but the 'without rewriting it' framing routes the agent away from brain_write.

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