Skip to main content
Glama
binodrajpandey

MCP Server Example

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
NameRequiredDescriptionDefault
nameYes

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."
Install Server

Other Tools

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/binodrajpandey/mcp-example'

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