Skip to main content
Glama
luiso2

Evolution API WhatsApp MCP Server

by luiso2

list_instances

Retrieve all active WhatsApp Business instances to manage messaging accounts, monitor connection status, and organize communication channels.

Instructions

List all WhatsApp instances

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'list_instances' tool. It fetches the list of WhatsApp instances from the EvolutionAPI service and returns them as a JSON-formatted text content block.
    private async handleListInstances() { const instances = await evolutionAPI.fetchInstances(); return { content: [ { type: 'text', text: JSON.stringify(instances, null, 2) } ] }; }
  • src/index.ts:56-63 (registration)
    The tool registration definition including name, description, and empty input schema (no parameters required). This is part of the tools array registered with the MCP server.
    { name: 'list_instances', description: 'List all WhatsApp instances', inputSchema: { type: 'object', properties: {} } },
  • The input schema for the 'list_instances' tool, which requires no parameters.
    inputSchema: { type: 'object', properties: {} }
  • Supporting helper method in EvolutionAPI service that performs the actual HTTP GET request to the Evolution API endpoint '/instance/fetchInstances' to retrieve the list of instances.
    async fetchInstances(): Promise<Instance[]> { const response = await this.client.get('/instance/fetchInstances'); 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