Add tag

Add a tag to a ticket.

MCP tool zammad_write → add_tag

write

Adds one tag and returns the ticket's tags. A tag that does not exist is created only if your account may create tags, otherwise the call fails and says so. A tag reaches no customer and one remove_tag call undoes it, so it does not wait for your OK. Tags do not necessarily start a Zammad trigger.

Parameters

Parameters: add_tag
NameTypeDescription
ticket_id integer required integer Ticket ID from search_tickets, list_overview_tickets or the ticket address (#ticket/zoom/{ticket_id}).
tag string required string Tag name, e.g. 'refund'.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "zammad_write",
    "arguments": {
      "operation": "add_tag",
      "arguments": {
        "ticket_id": 1,
        "tag": "refund"
      }
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "ticket_id": 4812,
    "tags": [
      "refund",
      "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.