You're viewing a demo portfolio

Join the waitlist
PRSM

create_email_rule

Active

Tool of EmailMCP

declared in 1.0.0

Create a rule that triggers actions when incoming emails match conditions. Actions: forward, auto_reply, webhook, flag, move, mcp_tool, log, reject.

Parameters schema

{
  "type": "object",
  "required": [
    "name",
    "match",
    "actions"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "Rule name (unique)"
    },
    "stop": {
      "type": "boolean",
      "optional": true,
      "description": "Stop processing further rules after this one matches (default: false)"
    },
    "match": {
      "type": "object",
      "properties": {
        "to": {
          "type": "string",
          "description": "Recipient address or pattern"
        },
        "from": {
          "type": "string",
          "description": "Sender address or pattern (*@domain.com)"
        },
        "domain": {
          "type": "string",
          "description": "Sender domain"
        },
        "subject": {
          "type": "string",
          "description": "Subject contains text"
        },
        "body_contains": {
          "type": "string",
          "description": "Body contains text"
        },
        "subject_regex": {
          "type": "string",
          "description": "Subject regex pattern"
        },
        "has_attachments": {
          "type": "boolean",
          "description": "Has attachments"
        }
      },
      "description": "Match conditions (ALL must match). Use from, domain, subject, subject_regex, body_contains, has_attachments, to, header."
    },
    "actions": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "to": {
            "type": "string",
            "description": "For forward: recipient address"
          },
          "url": {
            "type": "string",
            "description": "For webhook: URL to POST to"
          },
          "args": {
            "type": "object",
            "description": "For mcp_tool: arguments to pass",
            "additionalProperties": true
          },
          "body": {
            "type": "string",
            "description": "For auto_reply: reply body text"
          },
          "flag": {
            "type": "string",
            "description": "For flag: flag name (default: important)"
          },
          "tool": {
            "type": "string",
            "description": "For mcp_tool: MCP tool name to invoke"
          },
          "type": {
            "enum": [
              "forward",
              "auto_reply",
              "webhook",
              "flag",
              "move",
              "mcp_tool",
              "log",
              "reject"
            ],
            "type": "string"
          },
          "folder": {
            "type": "string",
            "description": "For move: target folder"
          },
          "reason": {
            "type": "string",
            "description": "For reject: rejection reason"
          },
          "subject": {
            "type": "string",
            "description": "For auto_reply: reply subject"
          }
        }
      },
      "description": "Actions to execute when rule matches"
    },
    "priority": {
      "type": "number",
      "optional": true,
      "description": "Priority (lower = evaluated first, default 100)"
    },
    "description": {
      "type": "string",
      "optional": true,
      "description": "What this rule does"
    }
  }
}

What this tool wraps· 0 endpoints

min confidence0.700.50

No endpoints wrapped at confidence ≥ 0.50.

Parent server

EmailMCP

https://github.com/nfodor/emailmcp

1/7 registries
View full server →