Skip to main content
Glama
Ronnietag
by Ronnietag

notification_send

Send desktop notifications on Linux systems to display alerts, reminders, or status updates directly to the user's screen.

Instructions

Send a desktop notification

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYes
bodyYes

Implementation Reference

  • The core function that executes the notify-send command for the notification_send tool.
    def execute_notification_send(title: str, body: str) -> str:
        """Send a desktop notification."""
        try:
            subprocess.run(
                ["notify-send", title, body],
                capture_output=True,
                timeout=5,
            )
            return f"Sent: {title}"
        except FileNotFoundError:
            return "(notify-send not available)"
        except Exception as e:
            return f"Notification failed: {e}"
  • The MCP handler function that validates arguments and invokes the execution logic for notification_send.
    async def handle_notification_send(arguments: dict[str, Any]) -> list[TextContent]:
        """Handle notification_send tool calls."""
        if not arguments or "title" not in arguments or "body" not in arguments:
            return [TextContent(type="text", text="Error: missing parameters")]
    
        result = execute_notification_send(arguments["title"], arguments["body"])
        return [TextContent(type="text", text=result)]
  • The tool handler registration in the TOOL_HANDLERS dictionary.
    "notification_send": handle_notification_send,

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/Ronnietag/linux-mcp'

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