Skip to main content
Glama

add_notification_rule

Creates a notification rule that forwards matching Android notifications to this chat and applies your instruction, after showing the rule for approval.

Instructions

Have Buddy bring a notification into this chat whenever one matching arrives, with an instruction: "when Sam writes on WhatsApp, answer that I'm driving". Buddy shows the user the rule on a card and adds it only if they approve. Each match then comes here as a new message to you, quoting the notification, and you work as a notification rule's run does: phone tools with cards before anything risky, no shell, files or web, Trust doesn't apply. The rule starts on asking before acting; the user changes or deletes it in Settings > Safety and approvals > Notification rules. For a time instead of a notification, use schedule_message.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "app": "<app>",
      "instruction": "<instruction>"
    },
    "name": "add_notification_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
appYesThe app the notification comes from: its name or package
fromNoOptional: only from these senders or chats, comma-separated
wordsNoOptional: only notifications with one of these words, comma-separated
instructionYesWhat to do when it comes, as a message to yourself

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.3.13

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses the approval card gate, the default posture ('starts on asking before acting'), where the user edits or deletes the rule, and the runtime constraints for each match (phone tools with cards before anything risky, no shell/files/web, Trust does not apply). This is behavioral context an agent could not infer from the schema.

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?

The core action and the sibling routing are front-loaded, and most sentences earn their place by covering approval, runtime constraints, and rule management. It is dense and slightly jargon-laden ('you work as a notification rule's run does', 'Trust doesn't apply'), which costs some readability but not enough to warrant trimming.

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

Completeness4/5

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

For a complex, unannotated tool with no output schema, the description covers purpose, approval flow, ongoing execution behavior, and lifecycle management well. The main gap is what the immediate call returns (e.g., a rule identifier or a decline signal), which the agent must discover at runtime.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description nonetheless adds value by showing how the filters compose in practice — app source, sender, and triggering words all feeding one instruction string. It stops short of clarifying edge cases such as comma-separated matching semantics or how broad app identifiers are resolved, which keeps it below a 5.

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

Purpose5/5

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

The description states a specific verb and resource — adding a standing notification rule that routes matching notifications into this chat with an instruction — and illustrates it with a concrete example ('when Sam writes on WhatsApp, answer that I'm driving'). It also names the sibling it is not (schedule_message) and the condition that distinguishes them, so an agent can route correctly without opening either schema.

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

Usage Guidelines5/5

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

It says when to use this tool (a persistent rule keyed to incoming notifications), when to use the alternative instead ('For a time instead of a notification, use schedule_message'), and that the rule requires user approval on a card before it is created. Exclusions and prerequisites are explicit rather than implied.

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