Skip to main content
Glama

Twitter MCP Server

getDirectMessageEvents

Retrieve detailed Twitter Direct Message events, including text, sender ID, and attachments, with customizable fields, expansions, and pagination for efficient data retrieval.

Instructions

Get specific direct message events with detailed information

Input Schema

NameRequiredDescriptionDefault
dmEventFieldsNoFields to include in the DM event objects
expansionsNoAdditional fields to expand in the response
maxResultsNoMaximum number of results to return (default: 100, max: 100)
paginationTokenNoPagination token for retrieving next page of results
userFieldsNoUser fields to include when expanding sender information

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" }, "expansions": { "description": "Additional fields to expand in the response", "items": { "enum": [ "sender_id", "referenced_tweet.id", "attachments.media_keys" ], "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" }, "userFields": { "description": "User fields to include when expanding sender information", "items": { "enum": [ "username", "name", "profile_image_url", "verified" ], "type": "string" }, "type": "array" } }, "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