Skip to main content
Glama
by wsapi-chat

whatsapp_get_group

Retrieve detailed information about a specific WhatsApp group using its group ID, including member list, group settings, and metadata for group management operations.

Instructions

Get information about a specific group.

Input Schema

NameRequiredDescriptionDefault
groupIdYesGroup ID (with @g.us)

Input Schema (JSON Schema)

{ "properties": { "groupId": { "description": "Group ID (with @g.us)", "type": "string" } }, "required": [ "groupId" ], "type": "object" }

Implementation Reference

  • The ToolHandler implementation for 'whatsapp_get_group', including input schema, description, and async handler that validates input and fetches group details from the WhatsApp API.
    export const getGroup: ToolHandler = { name: 'whatsapp_get_group', description: 'Get information about a specific group.', inputSchema: { type: 'object', properties: { groupId: { type: 'string', description: 'Group ID (with @g.us)' } }, required: ['groupId'], }, handler: async (args: any) => { const input = validateInput(getGroupSchema, args); const result = await wsapiClient.get(`/groups/${input.groupId}`); return { success: true, group: result }; }, };
  • Zod validation schema used in the handler for input validation of groupId.
    export const getGroupSchema = z.object({ groupId: groupIdSchema, });
  • src/server.ts:57-65 (registration)
    Tool categories array including 'groupTools' (which contains whatsapp_get_group), registered in setupToolHandlers.
    const toolCategories = [ messagingTools, contactTools, groupTools, chatTools, sessionTools, instanceTools, accountTools, ];
  • src/server.ts:17-17 (registration)
    Import of groupTools containing the whatsapp_get_group tool.
    import { groupTools } from './tools/groups.js';
  • Export bundling group-related tools including getGroup for registration in server.
    export const groupTools = { getGroups, createGroup, getGroup, updateGroupName };

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/wsapi-chat/wsapi-mcp'

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