-
Notifications
You must be signed in to change notification settings - Fork 69
[BUG] edit-note tool fails with MCP error -32602: schema missing content parameter #42
Copy link
Copy link
Open
Description
Description
The edit-note tool cannot be used with any operation (append, prepend, replace) due to an incomplete JSON schema. The content/new_source parameter is missing from the tool's schema definition.
Error Message
MCP error -32602: Invalid discriminator value
Expected 'delete' | 'append' | 'prepend' | 'replace'
This error occurs before the tool executes because the schema validation fails when trying to pass the content parameter.
Steps to Reproduce
- Try to call the edit-note tool with any operation:
-
- mcp__obsidian__edit-note({
- vault: "perlo",
- filename: "test.md",
- folder: "TestFolder",
- operation: "append",
- content: "test content" // ← This parameter doesn't exist in schema
- })
-
- Observe error -32602: Invalid discriminator value
Expected Behavior
The edit-note tool should accept a content parameter and modify the note accordingly.
Actual Behavior
Schema validation fails because the content/new_source parameter is not defined in the tool's schema properties.
Root Cause Analysis
The tool schema is incomplete. It defines:
- ✅ vault
-
- ✅ filename
-
-
- ✅ folder
-
-
-
-
- ✅ operation (with correct enum values)
-
-
-
-
-
-
- ❌ MISSING: content or new_source parameter
The tool cannot function without the parameter to specify what content to append/prepend/replace.
- ❌ MISSING: content or new_source parameter
-
-
-
Workaround
Until fixed, use a read-modify-delete-recreate approach:
- Read the current note with read-note
-
- Modify content in memory
-
- Delete the note with delete-note
-
- Create a new note with the modified content using create-note
This preserves the note name but loses file history.
- Create a new note with the modified content using create-note
Additional Information
- MCP Server: obsidian-mcp v1.0.6
-
- Other tools working fine: create-note, read-note, delete-note, search-vault, add-tags, remove-tags
-
-
- Impact: Cannot automate note modifications (e.g., updating planning documents, appending to lists)
-
-
-
-
- Version: tested with latest obsidian-mcp
-
-
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels