You're viewing a demo portfolio

Join the waitlist
PRSM

create_action_rule

Active

Tool of QuintaDB

declared in 1.0.0

Створити тригер/правило дій для форми. Спрацьовує on_create/on_update і виконує: send_email, send_sms, update_record, redirect, show_message. Можна додати умови (conditions) і поля для оновлення (update_fields).

Parameters schema

{
  "type": "object",
  "required": [
    "app_id",
    "entity_id",
    "name"
  ],
  "properties": {
    "url": {
      "type": "string",
      "description": "URL для redirect"
    },
    "name": {
      "type": "string",
      "description": "Назва правила"
    },
    "app_id": {
      "type": "string",
      "description": "Project ID (from list_projects)"
    },
    "emails": {
      "type": "string",
      "description": "Email отримувачів (через кому)"
    },
    "message": {
      "type": "string",
      "description": "Текст повідомлення (для show_message)"
    },
    "numbers": {
      "type": "string",
      "description": "Номери телефонів для SMS (через кому)"
    },
    "subject": {
      "type": "string",
      "description": "Тема листа"
    },
    "redirect": {
      "type": "boolean"
    },
    "send_sms": {
      "type": "boolean"
    },
    "sms_body": {
      "type": "string",
      "description": "Текст SMS"
    },
    "entity_id": {
      "type": "string",
      "description": "ID форми"
    },
    "on_create": {
      "type": "boolean",
      "description": "Спрацьовує при створенні запису"
    },
    "on_update": {
      "type": "boolean",
      "description": "Спрацьовує при оновленні запису"
    },
    "conditions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "join": {
            "type": "string",
            "description": "and або or"
          },
          "search": {
            "type": "string"
          },
          "field_id": {
            "type": "string",
            "description": "Назва або ID поля"
          },
          "condition": {
            "type": "string",
            "description": "is, is_not, contains, is_empty, is_not_empty, less_than, greater_than тощо"
          }
        }
      },
      "description": "Умови спрацювання правила"
    },
    "email_body": {
      "type": "string",
      "description": "Тіло листа"
    },
    "send_email": {
      "type": "boolean"
    },
    "email_column": {
      "type": "string",
      "description": "Назва або ID поля з email отримувача"
    },
    "show_message": {
      "type": "boolean"
    },
    "update_fields": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "val": {
            "type": "string",
            "description": "Нове значення"
          },
          "field_id": {
            "type": "string",
            "description": "Назва або ID поля"
          },
          "set_current_time": {
            "type": "boolean"
          },
          "set_current_user": {
            "type": "boolean"
          }
        }
      },
      "description": "Поля для оновлення (коли update_record=true)"
    },
    "update_record": {
      "type": "boolean"
    }
  }
}

What this tool wraps· 0 endpoints

min confidence0.700.50

No endpoints wrapped at confidence ≥ 0.50.

Parent server

QuintaDB

1/7 registries
View full server →
create_action_rule — QuintaDB — PRSM MCP