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

Parameters: list_macros
NameTypeDescription
ticket_id integer integer Only macros that apply to this ticket's group.

tools/call

JSON-RPC

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

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "macros": [
      {
        "name": "Close & Tag as Spam"
      },
      {
        "name": "Hand over to Billing"
      }
    ]
  },
  "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.