Skip to main content
Glama

delete_note

Remove a specific note from the Notes MCP Server by providing its filename to declutter your workspace and manage your Markdown notes efficiently.

Instructions

Delete a note

Args: filename: Note filename

Returns: Confirmation message of deletion

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filenameYes

Implementation Reference

  • The @mcp.tool() decorator registers the subsequent delete_note function as an MCP tool named "delete_note".
    @mcp.tool()
  • The handler function for the delete_note tool. It deletes the specified note file from the notes directory and returns a success or not-found message.
    def delete_note(filename: str) -> str: """ Delete a note Args: filename: Note filename Returns: Confirmation message of deletion """ ensure_notes_dir() filepath = os.path.join(NOTES_DIR, filename) if not os.path.exists(filepath): return f"Note '{filename}' not found" os.remove(filepath) return f"Note '{filename}' deleted"
  • The docstring provides the tool schema, describing parameters (filename: str) and return value.
    """ Delete a note Args: filename: Note filename Returns: Confirmation message of deletion """

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/sayranovv/notes-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server