Update macro
Edit, archive or unarchive a macro.
MCP tool gorgias_write → update_macro
write Confirm
Changes the name, text or archived state of a macro. Needs a Lead or Admin user. A macro change affects every agent and every ticket it is applied to later. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| macro_id integer required | integer | Macro ID from list_macros. |
| name string | string | New name. |
| text string | string | New reply text. |
| archived boolean | boolean | true archives, false unarchives. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "gorgias_write",
"arguments": {
"operation": "update_macro",
"arguments": {
"macro_id": 3021,
"archived": true
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"macro_id": 3021,
"name": "Black Friday 2024 shipping",
"archived": true
},
"isError": false
}