delete_note
Remove a note from storage by specifying its name to manage your data efficiently.
Instructions
Delete a note by name.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes |
Implementation Reference
- server.py:39-45 (handler)The delete_note tool handler function. Takes a note name as parameter, checks if it exists in the in-memory notes dictionary, deletes it if found, and returns a status message. Decorated with @mcp.tool() which also serves as the registration.
@mcp.tool() def delete_note(name: str) -> str: """Delete a note by name.""" if name not in notes: return f"Note '{name}' not found." del notes[name] return f"Note '{name}' deleted."