Update rule

Turn a rule on or off, or rename it.

MCP tool gorgias_write → update_rule

write Confirm

Switches a rule on or off. Needs a Lead or Admin user. A rule can reply to customers and set tags on every new ticket, so a change reaches customers. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: update_rule
NameTypeDescription
rule_id integer required integer Rule ID from list_rules.
enabled boolean boolean true turns on, false turns off.
name string string New name.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "gorgias_write",
    "arguments": {
      "operation": "update_rule",
      "arguments": {
        "rule_id": 1
      }
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "rule_id": 512,
    "name": "Tag returns",
    "enabled": false
  },
  "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.