Skip to main content
Glama
luiso2

Evolution API WhatsApp MCP Server

by luiso2

add_participants

Add phone numbers to a WhatsApp group using Evolution API to expand group membership for business messaging and communication.

Instructions

Add participants to a group

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
groupJidYesGroup JID
instanceNameYesInstance name
participantsYesPhone numbers to add

Implementation Reference

  • MCP tool handler for 'add_participants' that delegates to EvolutionAPI and formats the response.
    private async handleAddParticipants(args: any) { const result = await evolutionAPI.addGroupParticipants(args.instanceName, { groupJid: args.groupJid, participants: args.participants }); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2) } ] };
  • Input schema defining parameters for the add_participants tool.
    { name: 'add_participants', description: 'Add participants to a group', inputSchema: { type: 'object', properties: { instanceName: { type: 'string', description: 'Instance name' }, groupJid: { type: 'string', description: 'Group JID' }, participants: { type: 'array', items: { type: 'string' }, description: 'Phone numbers to add' } }, required: ['instanceName', 'groupJid', 'participants'] } },
  • src/index.ts:534-535 (registration)
    Registration of the tool handler in the switch case for CallToolRequest.
    case 'add_participants': return await this.handleAddParticipants(args);
  • Helper method in EvolutionAPI that performs the HTTP POST to add participants to a group via the Evolution API backend.
    async addGroupParticipants(instanceName: string, data: { groupJid: string; participants: string[]; }): Promise<any> { const response = await this.client.post(`/group/addParticipants/${instanceName}`, data); return response.data; }

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/luiso2/mcp-evolution-api'

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