> ## 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 all account activities

> MCP tool to retrieve a paginated list of all activities for a specific account in the Thena platform.

import Admonition from '@theme/Admonition';

### MCP tool: `get_all_account_activities`

Retrieves a paginated list of all activities for a specific account. This tool supports pagination for efficient data retrieval and provides comprehensive activity information including type, status, participants, and timing details.

<Admonition type="note">
  This tool requires an account ID and supports pagination for efficient data retrieval.
</Admonition>

### Example prompt

```prompt theme={null}
Get all activities for account ACC001
```

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

### Input parameters

| Name      | Type   | Required | Description                                          |
| --------- | ------ | -------- | ---------------------------------------------------- |
| accountId | string | Yes      | The identifier of the account to find activities for |
| page      | number | No       | Page number for pagination (default: 1)              |
| limit     | number | No       | Number of activities per page (default: 10)          |

### Response fields

Below are the fields you may see in each account activity object in the response:

<table>
  <thead>
    <tr>
      <th>Field</th>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>

  <tbody>
    <tr><td>id</td><td>string</td><td>Unique identifier of the activity</td></tr>
    <tr><td>accountId</td><td>string</td><td>ID of the account the activity belongs to</td></tr>
    <tr><td>account</td><td>string</td><td>Name of the account</td></tr>
    <tr><td>activityTimestamp</td><td>string (ISO8601)</td><td>Timestamp when the activity occurred</td></tr>
    <tr><td>duration</td><td>number</td><td>Duration of the activity in minutes</td></tr>
    <tr><td>location</td><td>string</td><td>Location where the activity took place</td></tr>
    <tr><td>title</td><td>string</td><td>Title of the activity</td></tr>
    <tr><td>description</td><td>string</td><td>Description of the activity</td></tr>
    <tr><td>type</td><td>string</td><td>The type of the activity (e.g., "Meeting", "Call", "Email")</td></tr>
    <tr><td>typeId</td><td>string</td><td>ID of the activity type attribute</td></tr>
    <tr><td>typeConfiguration</td><td>object</td><td>Configuration of the activity type</td></tr>
    <tr><td>status</td><td>string</td><td>The status of the activity (e.g., "Completed", "Scheduled")</td></tr>
    <tr><td>statusId</td><td>string</td><td>ID of the activity status attribute</td></tr>
    <tr><td>statusConfiguration</td><td>object</td><td>Configuration of the activity status</td></tr>
    <tr><td>participants</td><td>array</td><td>Array of participant names</td></tr>
    <tr><td>creator</td><td>string</td><td>Name of the activity creator</td></tr>
    <tr><td>creatorId</td><td>string</td><td>ID of the activity creator</td></tr>
    <tr><td>creatorEmail</td><td>string</td><td>Email of the activity creator</td></tr>
    <tr><td>attachments</td><td>array</td><td>Array of file attachments for the activity</td></tr>
    <tr><td>metadata</td><td>object</td><td>Additional metadata for the activity</td></tr>
    <tr><td>createdAt</td><td>string (ISO8601)</td><td>Creation timestamp</td></tr>
    <tr><td>updatedAt</td><td>string (ISO8601)</td><td>Last update timestamp</td></tr>
  </tbody>
</table>

### Sample response

```json theme={null}
{
  "data": [
    {
      "id": "ACTIVITY001",
      "accountId": "ACC001",
      "account": "Acme Corporation",
      "activityTimestamp": "2025-07-24T10:00:00Z",
      "duration": 60,
      "location": "Conference Room A",
      "title": "Quarterly Business Review",
      "description": "Q2 2025 business review meeting to discuss performance metrics and strategic initiatives.",
      "type": "Meeting",
      "typeId": "TYPE001",
      "typeConfiguration": {
        "id": "TYPE001",
        "name": "Meeting",
        "color": "#3B82F6"
      },
      "status": "Completed",
      "statusId": "STATUS001",
      "statusConfiguration": {
        "id": "STATUS001",
        "name": "Completed",
        "color": "#10B981"
      },
      "participants": ["John Smith", "Jane Doe", "Bob Johnson"],
      "creator": "John Doe",
      "creatorId": "USER001",
      "creatorEmail": "john.doe@company.com",
      "attachments": [
        {
          "id": "ATTACH001",
          "fileName": "qbr_presentation.pdf",
          "fileSize": 2048000,
          "fileType": "application/pdf",
          "url": "https://example.com/files/qbr_presentation.pdf"
        }
      ],
      "metadata": {
        "priority": "high",
        "tags": ["business-review", "quarterly"],
        "followUpRequired": true
      },
      "createdAt": "2025-07-24T07:19:10.258Z",
      "updatedAt": "2025-07-24T07:19:10.258Z"
    },
    {
      "id": "ACTIVITY002",
      "accountId": "ACC001",
      "account": "Acme Corporation",
      "activityTimestamp": "2025-07-23T14:30:00Z",
      "duration": 30,
      "location": "Phone Call",
      "title": "Follow-up Call",
      "description": "Follow-up call to discuss the technical requirements for the new feature implementation.",
      "type": "Call",
      "typeId": "TYPE002",
      "typeConfiguration": {
        "id": "TYPE002",
        "name": "Call",
        "color": "#8B5CF6"
      },
      "status": "Completed",
      "statusId": "STATUS001",
      "statusConfiguration": {
        "id": "STATUS001",
        "name": "Completed",
        "color": "#10B981"
      },
      "participants": ["John Smith", "Jane Doe"],
      "creator": "Jane Smith",
      "creatorId": "USER002",
      "creatorEmail": "jane.smith@company.com",
      "attachments": [],
      "metadata": {
        "priority": "medium",
        "tags": ["follow-up", "technical"],
        "followUpRequired": false
      },
      "createdAt": "2025-07-23T08:19:10.258Z",
      "updatedAt": "2025-07-23T08:19:10.258Z"
    }
  ],
  "pagination": {
    "page": 1,
    "limit": 10,
    "total": 2,
    "totalPages": 1
  },
  "status": true,
  "message": "Account activities retrieved successfully!",
  "timestamp": "2025-07-25T12:50:38.937Z"
}
```

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

***
