> ## 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 priorities

> MCP tool to retrieve all possible ticket priorities from the Thena platform, optionally filtered by team.

import Admonition from '@theme/Admonition';

### MCP tool: `get_ticket_priorities`

Retrieves all possible priorities for tickets in the Thena platform, optionally filtered by team. Useful for building priority dropdowns, validating ticket creation, or analytics.

<Admonition type="note">
  If no <code>teamId</code> is provided, the tool returns all priorities available to the user.
</Admonition>

### Example prompt

```prompt theme={null}
Show me all ticket priorities for team THEWWYV55X0JJL
```

<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\_priorities</code> tool with the correct arguments.
</Admonition>

### Input parameters

| Name   | Type   | Required | Description                                |
| ------ | ------ | -------- | ------------------------------------------ |
| teamId | string | No       | The team ID to fetch ticket priorities for |

### Response fields

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

| Field          | Type    | Description                      |
| -------------- | ------- | -------------------------------- |
| id             | string  | Unique priority ID               |
| name           | string  | Priority name (e.g., "High")     |
| displayName    | string  | Display name for the priority    |
| description    | string  | Description of the priority      |
| teamId         | string  | Team ID this priority belongs to |
| organizationId | string  | Organization ID                  |
| isDefault      | boolean | Whether this is the default      |
| createdAt      | string  | Creation timestamp (ISO8601)     |
| updatedAt      | string  | Last update timestamp (ISO8601)  |

Other top-level fields in the response:

| Field     | Type    | Description                               |
| --------- | ------- | ----------------------------------------- |
| data      | array   | List of ticket priority 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": "MA4VETZJ105PJDAZS2KBVVRPPQXDE",
      "name": "Low",
      "displayName": "Low",
      "description": "Low priority tickets.",
      "teamId": "THEWWYV55X0JJL",
      "organizationId": "ETHPPX4JJ21NNJ",
      "isDefault": false,
      "createdAt": "2025-07-10T15:21:39.373Z",
      "updatedAt": "2025-07-10T15:21:39.373Z"
    },
    {
      "id": "NA4VETZJ101R0M4M13T86JQXB2JXC",
      "name": "Medium",
      "displayName": "Medium",
      "description": "Medium priority tickets.",
      "teamId": "THEWWYV55X0JJL",
      "organizationId": "ETHPPX4JJ21NNJ",
      "isDefault": true,
      "createdAt": "2025-07-10T15:21:39.373Z",
      "updatedAt": "2025-07-10T15:21:39.373Z"
    },
    {
      "id": "NA4VETZJ10MXCXEDAXBVRZYG5SFSE",
      "name": "High",
      "displayName": "High",
      "description": "High priority tickets.",
      "teamId": "THEWWYV55X0JJL",
      "organizationId": "ETHPPX4JJ21NNJ",
      "isDefault": false,
      "createdAt": "2025-07-10T15:21:39.373Z",
      "updatedAt": "2025-07-10T15:21:39.373Z"
    },
    {
      "id": "NA4VETZJ100VS1F416QJM1ED93SEQ",
      "name": "Urgent",
      "displayName": "Urgent",
      "description": "Urgent priority tickets.",
      "teamId": "THEWWYV55X0JJL",
      "organizationId": "ETHPPX4JJ21NNJ",
      "isDefault": false,
      "createdAt": "2025-07-10T15:21:39.373Z",
      "updatedAt": "2025-07-10T15:21:39.373Z"
    }
  ],
  "status": true,
  "message": "Ticket priorities fetched successfully!",
  "timestamp": "2025-07-24T10:16:10.535Z"
}
```

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

***
