List macros
Macros your account can run on a ticket, such as Close & Tag as Spam.
MCP tool zammad_read → list_macros
read
Returns the names of the macros in the ticket's Update menu. Admins create macros under Manage > Macros and limit each to groups, so pass ticket_id to see the ones that fit that ticket. Zammad ships Close & Tag as Spam, which makes you the owner, adds the tag spam and closes the ticket.
Parameters
| Name | Type | Description |
|---|---|---|
| ticket_id integer | integer | Only macros that apply to this ticket's group. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "zammad_read",
"arguments": {
"operation": "list_macros",
"arguments": {}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"macros": [
{
"name": "Close & Tag as Spam"
},
{
"name": "Hand over to Billing"
}
]
},
"isError": false
}