List rules

Your rules with trigger, conditions, actions and run order.

MCP tool gorgias_read → list_rules

read

Returns rules in the order they are listed on the Rules page, which is the order they run within one trigger. Needs a Lead or Admin user, because other roles cannot see rules.

Parameters

Parameters: list_rules
NameTypeDescription
enabled boolean boolean Only enabled (true) or only disabled (false) rules. Default: all.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "gorgias_read",
    "arguments": {
      "operation": "list_rules",
      "arguments": {}
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "rules": [
      {
        "rule_id": 512,
        "name": "Tag returns",
        "trigger": "Ticket created",
        "enabled": true,
        "conditions": "Message contains \"return\"",
        "actions": [
          "Add tags",
          "Assign team"
        ]
      }
    ]
  },
  "isError": false
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.