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,
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotationsprovided, so description carries full burden. Fails to disclose whether this blocks execution, requires specific OS permissions, handles display duration, or returns success/failure indicators.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Extremely efficient at four words with no redundancy. Front-loaded with the action verb. However, excessive brevity given the lack of schema documentation and annotations leaves it underspecified.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Inadequate for a tool with zero schema descriptions and no annotations. Missing critical context: error conditions, display behavior, permission requirements, and parameter details needed for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema has 0% description coverage, requiring the description to compensate. Description omits semantics for 'title' and 'body' parameters (length limits, formatting support, required vs optional nature) despite being able to infer basic purpose from the tool name.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clear verb+resource ('Send a desktop notification') that distinguishes from file and clipboard siblings. However, lacks specificity about the notification mechanism (OS native vs in-app) or target user.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use versus alternatives (e.g., when to send a notification vs writing to a log file), prerequisites, or conditions where notifications might fail (permissions disabled, DND mode).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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

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