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
| Name | Type | Description |
|---|---|---|
| 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
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "zammad_write",
"arguments": {
"operation": "add_tag",
"arguments": {
"ticket_id": 1,
"tag": "refund"
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"ticket_id": 4812,
"tags": [
"refund",
"billing"
]
},
"isError": false
}