Skip to main content

MCP tool: create_comment

Add a new comment to any entity in the Thena platform. This tool allows you to create comments with various content types, visibility settings, and threading capabilities.

Example prompt

Input parameters

Content types

You can provide comment content in multiple formats:

Plain text

HTML content

JSON content (Rich text)

Visibility settings

Public comment (Default)

Private comment

Threaded comments

Create a reply to an existing comment:

Comment types

Different comment types serve different purposes:
  • comment - General comment (default)
  • note - Internal note
  • reply - Reply to another comment
  • status_update - Status change notification
  • assignment - Assignment notification

Examples

Basic ticket comment

Public customer response

Comment with attachments

Impersonated user comment

Response fields

Below are the fields you may see in the response:
FieldTypeDescription
idstringComment unique ID
contentstringPlain text content of the comment
contentHtmlstringHTML formatted content
contentMarkdownstringMarkdown formatted content
contentJsonstringJSON formatted content for rich text
isEditedbooleanWhether the comment has been edited
threadNamestringName of the comment thread
commentVisibilitystringVisibility setting (public or private)
commentTypestringType of comment (note, reply, comment, etc.)
isPinnedbooleanWhether the comment is pinned
sourceEmailIdstringEmail ID if comment came from email
metadataobjectAdditional metadata including mentions
createdAtstring (ISO8601)Creation timestamp
updatedAtstring (ISO8601)Last update timestamp
authorstringAuthor display name
authorAvatarUrlstringAuthor’s avatar URL
attachmentsarrayArray of attachment IDs
authorIdstringAuthor’s user ID
authorUserTypestringAuthor’s user type (e.g., ORG_ADMIN)
impersonatedUserEmailstringEmail of impersonated user
impersonatedUserNamestringName of impersonated user
impersonatedUserAvatarstringAvatar of impersonated user
deletedAtstringDeletion timestamp (null if not deleted)

Sample response

Error handling

Common error scenarios:
  • Invalid entity type or ID
  • Missing required content
  • Invalid attachment IDs
  • Permission denied for the entity
  • Network or authentication errors