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

Parameters: tag_message
NameTypeDescription
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

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "sprout_social_write",
    "arguments": {
      "operation": "tag_message",
      "arguments": {
        "message_id": "message_8c41d2"
      }
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "message_id": "msg_88a1f4",
    "tags": [
      "Product question"
    ]
  },
  "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.