Skip to main content
Glama

send_reaction

Send reactions to Instagram messages by specifying recipient, message ID, and reaction type like love, like, haha, wow, sad, or angry.

Instructions

Send a reaction to a message on Instagram

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
recipientIdYesThe user ID
messageIdYesThe message ID to react to
reactionYesReaction type (e.g., love, like, haha, wow, sad, angry)

Implementation Reference

  • Handler for the 'send_reaction' tool in the main switch statement within CallToolRequestSchema handler. Parses input using SendReactionSchema and calls api.sendMessageReaction.
    case 'send_reaction': { const params = SendReactionSchema.parse(args); result = await api.sendMessageReaction( params.recipientId, params.messageId, params.reaction ); break; }
  • Zod schema for validating input parameters of the send_reaction tool: recipientId, messageId, reaction.
    const SendReactionSchema = z.object({ recipientId: z.string(), messageId: z.string(), reaction: z.string() });
  • src/index.ts:120-132 (registration)
    Tool registration in the ListToolsRequestSchema response, defining name, description, and inputSchema matching the Zod schema.
    { name: 'send_reaction', description: 'Send a reaction to a message on Instagram', inputSchema: { type: 'object', properties: { recipientId: { type: 'string', description: 'The user ID' }, messageId: { type: 'string', description: 'The message ID to react to' }, reaction: { type: 'string', description: 'Reaction type (e.g., love, like, haha, wow, sad, angry)' } }, required: ['recipientId', 'messageId', 'reaction'] } },
  • Core helper function that performs the actual API call to send a reaction to a message via Facebook Graph API.
    export async function sendMessageReaction( recipientId: string, messageId: string, reaction: string ): Promise<any> { return makeApiCall({ method: 'POST', endpoint: `/me/messages`, data: { recipient: { id: recipientId }, sender_action: 'react', payload: { message_id: messageId, reaction } } }); }

Latest Blog Posts

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/osborn1997/instagram-mcp-server'

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