Skip to main content
Glama

Twitter MCP Server

sendDirectMessage

Send a direct message to a user on Twitter by specifying the recipient ID, message text, and optional media attachments using the MCP server.

Instructions

Send a direct message to a specified user

Input Schema

NameRequiredDescriptionDefault
attachmentsNoOptional array of media IDs to attach to the message
mediaIdNoOptional media ID for attaching media to the message
recipientIdYesThe ID of the user to send the message to
textYesThe text content of the direct message

Input Schema (JSON Schema)

{ "properties": { "attachments": { "description": "Optional array of media IDs to attach to the message", "items": { "type": "string" }, "type": "array" }, "mediaId": { "description": "Optional media ID for attaching media to the message", "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" ], "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