Skip to main content
Glama
luiso2

Evolution API WhatsApp MCP Server

by luiso2

remove_participants

Remove specified participants from a WhatsApp group using their phone numbers to manage group membership and maintain appropriate conversation environments.

Instructions

Remove participants from a group

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
groupJidYesGroup JID
instanceNameYesInstance name
participantsYesPhone numbers to remove

Implementation Reference

  • The MCP tool handler function that executes the remove_participants logic by calling the EvolutionAPI service.
    private async handleRemoveParticipants(args: any) {
      const result = await evolutionAPI.removeGroupParticipants(args.instanceName, {
        groupJid: args.groupJid,
        participants: args.participants
      });
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify(result, null, 2)
          }
        ]
      };
    }
  • Input schema definition for the remove_participants tool.
    {
      name: 'remove_participants',
      description: 'Remove participants from 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 remove'
          }
        },
        required: ['instanceName', 'groupJid', 'participants']
      }
  • src/index.ts:536-537 (registration)
    Registration of the tool handler in the MCP call tool request switch statement.
    case 'remove_participants':
      return await this.handleRemoveParticipants(args);
  • Helper method in EvolutionAPI service that makes the HTTP POST request to remove group participants.
    async removeGroupParticipants(instanceName: string, data: {
      groupJid: string;
      participants: string[];
    }): Promise<any> {
      const response = await this.client.post(`/group/removeParticipants/${instanceName}`, data);
      return response.data;
    }

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided. The description is too brief: it does not disclose that this is a destructive action, potential need for admin rights, connection requirements, or error behavior. Falls short for a mutation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence, minimal. While concise, it lacks necessary detail to be fully useful. It is adequately structured but too sparse.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 3 required parameters, no output schema, and no annotations, the description is insufficient. It omits prerequisites, return values, and error handling, leaving the agent with gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema documentation coverage is 100%, so baseline is 3. The description adds no extra context beyond what the schema provides; it merely restates the purpose.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Remove participants from a group', specifying the verb (remove) and resource (participants from a group). This distinguishes it from sibling 'add_participants'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool versus alternatives like 'add_participants' or other group management tools. No mention of prerequisites or conditions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.