> ## Documentation Index
> Fetch the complete documentation index at: https://docs.thena.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get ticket comments

> MCP tool to retrieve all comments for a specific ticket in the Thena platform.

import Admonition from '@theme/Admonition';

### MCP tool: `get_ticket_comments`

Retrieves all comments for a specific ticket in the Thena platform. Useful for support, collaboration, and audit trails.

<Admonition type="note">
  You must provide the ticket <code>id</code>.
</Admonition>

### Example prompt

```prompt theme={null}
Show me all comments for ticket SY7BWX0K10YKRDE5FAHNBHFBS986H
```

<Admonition type="info">
  When you use this prompt in a chat with the model (with the MCP tool registered), the model will automatically call the <code>get\_ticket\_comments</code> tool with the correct arguments.
</Admonition>

### Input parameters

| Name | Type   | Required | Description                                |
| ---- | ------ | -------- | ------------------------------------------ |
| id   | string | Yes      | The ID of the ticket to fetch comments for |

### Response fields

Below are the fields you may see in a ticket comment result:

| Field                  | Type    | Description                              |
| ---------------------- | ------- | ---------------------------------------- |
| id                     | string  | Comment unique ID                        |
| content                | string  | Comment text                             |
| contentHtml            | string  | HTML content                             |
| contentMarkdown        | string  | Markdown content                         |
| contentJson            | string  | JSON content                             |
| isEdited               | boolean | Whether the comment was edited           |
| threadName             | string  | Thread name                              |
| commentVisibility      | string  | Comment visibility                       |
| commentType            | string  | Type of comment                          |
| isPinned               | boolean | Whether the comment is pinned            |
| sourceEmailId          | string  | Source email ID                          |
| metadata               | object  | Metadata (e.g., mentions, userReactions) |
| createdAt              | string  | Creation timestamp (ISO8601)             |
| updatedAt              | string  | Last update timestamp (ISO8601)          |
| author                 | string  | Author username or email                 |
| authorAvatarUrl        | string  | Author avatar URL                        |
| attachments            | array   | List of attachment objects               |
| authorId               | string  | Author user ID                           |
| authorUserType         | string  | Author user type (e.g., "ORG\_ADMIN")    |
| impersonatedUserEmail  | string  | Impersonated user email                  |
| impersonatedUserName   | string  | Impersonated user name                   |
| impersonatedUserAvatar | string  | Impersonated user avatar                 |
| deletedAt              | string  | Deletion timestamp (if deleted)          |

Other top-level fields in the response:

| Field     | Type    | Description                               |
| --------- | ------- | ----------------------------------------- |
| data      | array   | List of comment objects                   |
| status    | boolean | Whether the request was successful        |
| message   | string  | Status message                            |
| timestamp | string  | Time the response was generated (ISO8601) |

***

### Sample response

```json theme={null}
{
  "data": [
    {
      "id": "SY7BWX0K10YKRDE5FAHNBHFBS986H",
      "content": "Thank you for reporting this database connection timeout issue. I've escalated this to our database team for investigation. Expected resolution timeframe: 24-48 hours.",
      "contentHtml": "",
      "contentMarkdown": "Thank you for reporting this database connection timeout issue. I've escalated this to our database team for investigation. Expected resolution timeframe: 24-48 hours.",
      "contentJson": "{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"attrs\":{\"textAlign\":\"left\"}}]}",
      "isEdited": false,
      "threadName": null,
      "commentVisibility": "public",
      "commentType": "comment",
      "isPinned": false,
      "sourceEmailId": null,
      "metadata": {
        "mentions": [],
        "userReactions": []
      },
      "createdAt": "2025-07-24T09:31:03.888Z",
      "updatedAt": "2025-07-24T09:31:03.887Z",
      "author": "shakthi+1",
      "authorAvatarUrl": null,
      "attachments": [],
      "authorId": "UTH00SEXXFNVVN",
      "authorUserType": "ORG_ADMIN",
      "impersonatedUserEmail": null,
      "impersonatedUserName": null,
      "impersonatedUserAvatar": null,
      "deletedAt": null
    }
  ],
  "status": true,
  "message": "Comments fetched successfully!",
  "timestamp": "2025-07-24T11:32:32.215Z"
}
```

<Admonition type="tip">
  Always pass an object as input, even if empty, to avoid errors when calling the tool directly.
</Admonition>

***
