Skip to main content
Glama

Twitter MCP Server

createMediaMessage

Create and send direct messages on Twitter with media attachments, including images or videos, by specifying recipient, text, media ID, and optional alt text for accessibility.

Instructions

Send a direct message with media attachments

Input Schema

NameRequiredDescriptionDefault
altTextNoAlternative text for the media (accessibility)
mediaIdYesThe media ID of the uploaded media to attach
mediaTypeNoMIME type of the media file
recipientIdYesThe ID of the user to send the message to
textYesThe text content of the direct message

Input Schema (JSON Schema)

{ "properties": { "altText": { "description": "Alternative text for the media (accessibility)", "type": "string" }, "mediaId": { "description": "The media ID of the uploaded media to attach", "type": "string" }, "mediaType": { "description": "MIME type of the media file", "enum": [ "image/jpeg", "image/png", "image/gif", "video/mp4" ], "type": "string" }, "recipientId": { "description": "The ID of the user to send the message to", "type": "string" }, "text": { "description": "The text content of the direct message", "type": "string" } }, "required": [ "recipientId", "text", "mediaId" ], "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