Skip to main content
Glama

wa_rule_add

Add an auto-reply rule that matches incoming DM keywords and sends fixed text before AI or static replies, with optional owner alerts.

Instructions

Add an auto-reply rule: when an incoming DM matches keywords, reply with fixed text (checked before the AI/static reply) and optionally alert the owner. match_all=false = ANY keyword hits.

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": {
      "keywords": "<keywords>"
    },
    "name": "wa_rule_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoShort rule name (shown in owner alerts)
replyNoText to reply with
keywordsYesKeywords to match (lowercase, substring match)
match_allNotrue = ALL keywords must hit; false (default) = any
notify_ownerNoAlso send this message to WA_OWNER_NUMBER

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

A4/5.0
Behavior3/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 disclose the trigger, the reply behavior, the precedence ordering, and the optional owner alert. It leaves gaps around permissions/auth, duplicate-rule handling, and what happens when multiple rules match, so behavioral coverage is meaningful but incomplete.

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

Conciseness5/5

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

Two tightly written sentences with no waste. The trigger and action are front-loaded, and the match_all clarification is appended without displacing the core purpose.

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 five-parameter rule-creation tool with no output schema and no annotations, the description covers the trigger, action, precedence, and optional owner notification well. It is slightly incomplete on auth/permission requirements and error or duplicate-handling behavior, which matters for a mutation tool.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents all five parameters. The description restates match_all semantics ('false = ANY keyword hits') and the reply/alert behavior, which adds little beyond the schema, so the baseline of 3 is appropriate.

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?

States a specific verb (Add) and resource (auto-reply rule) plus the trigger condition (incoming DM matching keywords) and action (fixed text reply). The parenthetical 'checked before the AI/static reply' distinguishes it from the general autoreply sibling by precedence, so an agent can tell what this tool is for without opening the schema.

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

Usage Guidelines4/5

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

The description establishes clear context: it applies to incoming DMs and runs before the AI/static reply path, which tells the agent when this rule takes effect. It does not name a when-not condition or an explicit alternative tool, so it stops short of full routing guidance.

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