Apply topics
Add Topics to a Conversation, or remove them.
MCP tool gladly_write → apply_topics
write
Sets the Topics at the bottom of the Conversation, as the Topics menu does. A Topic already on the Conversation is ignored. Returns the Topics now on it. It reaches no one and one call undoes it, so it needs no confirmation.
Parameters
| Name | Type | Description |
|---|---|---|
| conversation_id string required | string | Conversation ID from list_my_customers, list_conversations or get_customer. |
| add array | array | Topic IDs from list_topics to add. |
| remove array | array | Topic IDs to remove. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "gladly_write",
"arguments": {
"operation": "apply_topics",
"arguments": {
"conversation_id": "HXRqKC5GSV-jAlq0-sxYTA",
"add": [
"Z_Oto7j-Sy2DlQdnZBDdDw"
]
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"conversation_id": "HXRqKC5GSV-jAlq0-sxYTA",
"topics": [
"Order Status"
]
},
"isError": false
}