Skip to main content
Glama

Twitter MCP Server

getDirectMessages

Retrieve direct message conversations from Twitter with customizable fields and pagination. Manage DMs efficiently by accessing message details like text, sender ID, and timestamps.

Instructions

Retrieve direct message conversations

Input Schema

NameRequiredDescriptionDefault
dmEventFieldsNoFields to include in the DM event objects
maxResultsNoMaximum number of results to return (default: 100, max: 100)
paginationTokenNoPagination token for retrieving next page of results

Input Schema (JSON Schema)

{ "properties": { "dmEventFields": { "description": "Fields to include in the DM event objects", "items": { "enum": [ "id", "text", "created_at", "sender_id", "dm_conversation_id", "referenced_tweet", "attachments" ], "type": "string" }, "type": "array" }, "maxResults": { "description": "Maximum number of results to return (default: 100, max: 100)", "maximum": 100, "minimum": 1, "type": "number" }, "paginationToken": { "description": "Pagination token for retrieving next page of results", "type": "string" } }, "required": [], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/crazyrabbitLTC/mcp-twitter-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server