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

# Twitter MCP Tools

> Model Context Protocol (MCP) tool reference for connected Twitter accounts.

The Posttu MCP server exposes **15 tools** for interacting directly with connected **Twitter** channels.

### Requirements & Scopes

* **Connected Channel**: The target Twitter account must be connected in your workspace. Pass the channel's identifier as the `channelId` parameter.
* **Scope Permissions**:
  * Reads require `twitter:read` (or `mcp:full`).
  * Mutations require `twitter:write` (or `mcp:full`).
* **Dual Execution**: Every tool maps 1:1 to Posttu's REST API.

***

## Available Tools (15)

## Account

### `twitter_account_me`

Get the authenticated X creator profile. Returns the X profile of the authenticated creator for the given channel.

* **Scope**: `twitter:read`
* **REST Route**: [`POST /api/v1/twitter/account/me`](https://docs.posttu.com/api-reference/twitter/account/account-me)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "twitter_account_me",
    "arguments": {
      "channelId": "chn_live_12345"
    }
  }
}
```

***

### `twitter_profile`

Look up an X user. Resolves an X user by ID, or by username when `isUsername` is true.

* **Scope**: `twitter:read`
* **REST Route**: [`POST /api/v1/twitter/profile`](https://docs.posttu.com/api-reference/twitter/account/profile)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `userId` | `string` | **Yes** | — |
| `isUsername` | `boolean` | No | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "twitter_profile",
    "arguments": {
      "channelId": "chn_live_12345",
      "userId": "userId_example",
      "isUsername": false
    }
  }
}
```

***

## Messaging

### `twitter_conversations`

List X DM conversations. Lists the channel's direct-message conversations, paginated by X pagination token.

* **Scope**: `twitter:read`
* **REST Route**: [`POST /api/v1/twitter/conversations`](https://docs.posttu.com/api-reference/twitter/messaging/conversations)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `paginationToken` | `string` | No | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "twitter_conversations",
    "arguments": {
      "channelId": "chn_live_12345",
      "paginationToken": "example_value"
    }
  }
}
```

***

### `twitter_conversations_messages`

List X conversation messages. Lists messages in a direct-message conversation, paginated.

* **Scope**: `twitter:read`
* **REST Route**: [`POST /api/v1/twitter/conversations/messages`](https://docs.posttu.com/api-reference/twitter/messaging/conversations-messages)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `chatId` | `string` | **Yes** | — |
| `paginationToken` | `string` | No | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "twitter_conversations_messages",
    "arguments": {
      "channelId": "chn_live_12345",
      "chatId": "chatId_example",
      "paginationToken": "example_value"
    }
  }
}
```

***

### `twitter_conversations_message_send`

Send an X direct message. Sends a direct message in a conversation, optionally with media.

* **Scope**: `twitter:write`
* **REST Route**: [`POST /api/v1/twitter/conversations/message/send`](https://docs.posttu.com/api-reference/twitter/messaging/conversations-message-send)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `chatId` | `string` | **Yes** | — |
| `messageData` | `object` | **Yes** | — |
| `messageData.fansly` | `object` | No | — |
| `messageData.fansly.lockedText` | `array` | No | — |
| `messageData.fansly.media` | `array` | No | — |
| `messageData.onlyfans` | `object` | No | — |
| `messageData.onlyfans.lockedText` | `boolean` | No | — |
| `messageData.price` | `number` | No | — |
| `messageData.message` | `string` | No | — |
| `messageData.media` | `array` | No | — |
| `messageData.mediaPreviewIds` | `array` | No | — |
| `messageData.scheduledFor` | `any` | No | — |
| `messageData.replyTo` | `string` | No | — |
| `messageData.meta` | `object` | No | — |
| `messageData.meta.messagingType` | `string` | No | — |
| `messageData.meta.messageTag` | `string` | No | — |
| `messageData.meta.commentId` | `string` | No | — |
| `messageData.meta.comment_id` | `string` | No | — |
| `messageData.meta.postId` | `string` | No | — |
| `messageData.meta.post_id` | `string` | No | — |
| `forceEncrypted` | `boolean` | No | — |
| `forceStandard` | `boolean` | No | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "twitter_conversations_message_send",
    "arguments": {
      "channelId": "chn_live_12345",
      "chatId": "chatId_example",
      "messageData": {
        "price": 10,
        "message": "example_value",
        "media": [],
        "mediaPreviewIds": [
          "med_asset_123"
        ],
        "scheduledFor": "value",
        "replyTo": "example_value"
      },
      "forceEncrypted": false,
      "forceStandard": false
    }
  }
}
```

***

### `twitter_conversations_by_user`

List X conversations with a user. Lists DM conversations with a specific X user, paginated.

* **Scope**: `twitter:read`
* **REST Route**: [`POST /api/v1/twitter/conversations/by-user`](https://docs.posttu.com/api-reference/twitter/messaging/conversations-by-user)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `userId` | `string` | **Yes** | — |
| `paginationToken` | `string` | No | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "twitter_conversations_by_user",
    "arguments": {
      "channelId": "chn_live_12345",
      "userId": "userId_example",
      "paginationToken": "example_value"
    }
  }
}
```

***

## Posts

### `twitter_posts_get`

Get tweets. Retrieves one or more tweets by ID.

* **Scope**: `twitter:read`
* **REST Route**: [`POST /api/v1/twitter/posts/get`](https://docs.posttu.com/api-reference/twitter/posts/posts-get)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `tweetId` | `any` | **Yes** | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "twitter_posts_get",
    "arguments": {
      "channelId": "chn_live_12345",
      "tweetId": "value"
    }
  }
}
```

***

### `twitter_posts_list`

List X posts. Lists the channel's tweets, paginated.

* **Scope**: `twitter:read`
* **REST Route**: [`POST /api/v1/twitter/posts/list`](https://docs.posttu.com/api-reference/twitter/posts/posts-list)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `limit` | `number` | No | — |
| `cursor` | `string` | No | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "twitter_posts_list",
    "arguments": {
      "channelId": "chn_live_12345",
      "limit": 10,
      "cursor": "example_value"
    }
  }
}
```

***

### `twitter_posts_delete`

Delete X posts. Deletes one or more tweets by ID.

* **Scope**: `twitter:write`
* **REST Route**: [`POST /api/v1/twitter/posts/delete`](https://docs.posttu.com/api-reference/twitter/posts/posts-delete)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `tweetIds` | `any` | **Yes** | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "twitter_posts_delete",
    "arguments": {
      "channelId": "chn_live_12345",
      "tweetIds": "value"
    }
  }
}
```

***

### `twitter_posts_like`

Like an X post. Likes a tweet.

* **Scope**: `twitter:write`
* **REST Route**: [`POST /api/v1/twitter/posts/like`](https://docs.posttu.com/api-reference/twitter/posts/posts-like)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `tweetId` | `string` | **Yes** | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "twitter_posts_like",
    "arguments": {
      "channelId": "chn_live_12345",
      "tweetId": "tweetId_example"
    }
  }
}
```

***

### `twitter_posts_unlike`

Unlike an X post. Removes a like from a tweet.

* **Scope**: `twitter:write`
* **REST Route**: [`POST /api/v1/twitter/posts/unlike`](https://docs.posttu.com/api-reference/twitter/posts/posts-unlike)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `tweetId` | `string` | **Yes** | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "twitter_posts_unlike",
    "arguments": {
      "channelId": "chn_live_12345",
      "tweetId": "tweetId_example"
    }
  }
}
```

***

### `twitter_posts_repost`

Repost an X post. Reposts a tweet.

* **Scope**: `twitter:write`
* **REST Route**: [`POST /api/v1/twitter/posts/repost`](https://docs.posttu.com/api-reference/twitter/posts/posts-repost)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `tweetId` | `string` | **Yes** | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "twitter_posts_repost",
    "arguments": {
      "channelId": "chn_live_12345",
      "tweetId": "tweetId_example"
    }
  }
}
```

***

### `twitter_posts_unrepost`

Unrepost an X post. Removes a repost from a tweet.

* **Scope**: `twitter:write`
* **REST Route**: [`POST /api/v1/twitter/posts/unrepost`](https://docs.posttu.com/api-reference/twitter/posts/posts-unrepost)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `tweetId` | `string` | **Yes** | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "twitter_posts_unrepost",
    "arguments": {
      "channelId": "chn_live_12345",
      "tweetId": "tweetId_example"
    }
  }
}
```

***

## Comments

### `twitter_posts_comments_create`

Reply to an X post. Creates a reply on a tweet, optionally with media from the workspace.

* **Scope**: `twitter:write`
* **REST Route**: [`POST /api/v1/twitter/posts/comments/create`](https://docs.posttu.com/api-reference/twitter/comments/posts-comments-create)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `externalCommentId` | `string` | No | — |
| `externalPostId` | `string` | No | — |
| `messageData` | `object` | **Yes** | — |
| `messageData.media` | `array` | No | — |
| `messageData.message` | `string` | No | — |
| `messageData.fansly` | `object` | No | — |
| `messageData.fansly.lockedText` | `array` | No | — |
| `messageData.fansly.media` | `array` | No | — |
| `messageData.onlyfans` | `object` | No | — |
| `messageData.onlyfans.price` | `number` | No | — |
| `messageData.onlyfans.lockedText` | `boolean` | No | — |
| `messageData.mastodon` | `object` | No | — |
| `messageData.mastodon.sensitive` | `boolean` | No | — |
| `messageData.mastodon.spoiler_text` | `string` | No | — |
| `messageData.mastodon.visibility` | `string` | No | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "twitter_posts_comments_create",
    "arguments": {
      "channelId": "chn_live_12345",
      "externalCommentId": "externalCommentId_example",
      "externalPostId": "externalPostId_example",
      "messageData": {
        "media": [],
        "message": "example_value"
      }
    }
  }
}
```

***

### `twitter_posts_comments_delete`

Delete an X comment. Deletes a tweet reply by ID.

* **Scope**: `twitter:write`
* **REST Route**: [`POST /api/v1/twitter/posts/comments/delete`](https://docs.posttu.com/api-reference/twitter/comments/posts-comments-delete)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `externalCommentId` | `string` | **Yes** | — |
| `externalPostId` | `string` | No | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "twitter_posts_comments_delete",
    "arguments": {
      "channelId": "chn_live_12345",
      "externalCommentId": "externalCommentId_example",
      "externalPostId": "externalPostId_example"
    }
  }
}
```

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.