Skip to content

Commit 2a458c8

Browse files
phernandezclaude
andcommitted
fix: remove idempotentHint from edit_note
edit_note supports append/prepend operations which are not idempotent — repeating the same call adds duplicate content. Marking it idempotent could cause MCP clients to auto-retry on transient failures, producing duplicated edits. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: phernandez <paul@basicmachines.co>
1 parent 31c145e commit 2a458c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/basic_memory/mcp/tools/edit_note.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def _format_error_response(
125125

126126
@mcp.tool(
127127
description="Edit an existing markdown note using various operations like append, prepend, find_replace, or replace_section.",
128-
annotations={"destructiveHint": False, "idempotentHint": True, "openWorldHint": False},
128+
annotations={"destructiveHint": False, "openWorldHint": False},
129129
)
130130
async def edit_note(
131131
identifier: str,

0 commit comments

Comments
 (0)