Tag message
Add or remove tags on a Smart Inbox message.
MCP tool sprout_social_write → tag_message
write
Adds or removes tags on one message, using names from list_tags. Needs the Apply Tags permission. Tagging is internal: it reaches no customer and is undone by removing the tag, so tag_message runs without asking first.
Parameters
| Name | Type | Description |
|---|---|---|
| message_id string required | string | Message ID from list_inbox_messages. |
| add_tags string[] | string[] | Tag names to add, from list_tags. |
| remove_tags string[] | string[] | Tag names to remove. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "sprout_social_write",
"arguments": {
"operation": "tag_message",
"arguments": {
"message_id": "message_8c41d2"
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"message_id": "msg_88a1f4",
"tags": [
"Product question"
]
},
"isError": false
}