Skip to main content
Glama
wsapi-chat
by wsapi-chat

whatsapp_set_account_status

Update your WhatsApp account status message to share your current availability or mood with contacts.

Instructions

Update account status message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
statusYesStatus message (max 139 characters)

Implementation Reference

  • The ToolHandler implementation for 'whatsapp_set_account_status'. Validates input with setAccountStatusSchema and updates account status via wsapiClient.put('/account/status', input).
    export const setAccountStatus: ToolHandler = { name: 'whatsapp_set_account_status', description: 'Update account status message.', inputSchema: { type: 'object', properties: { status: { type: 'string', description: 'Status message (max 139 characters)' } }, required: ['status'], }, handler: async (args: any) => { const input = validateInput(setAccountStatusSchema, args); logger.info('Setting account status'); await wsapiClient.put('/account/status', input); return { success: true, message: 'Account status updated successfully' }; }, };
  • Zod schema for validating the tool input: status string (max 139 characters). Used in the handler's validateInput call.
    export const setAccountStatusSchema = z.object({ status: z.string().max(139), });
  • src/server.ts:57-65 (registration)
    Registration of accountTools (which includes whatsapp_set_account_status) into toolCategories array, which is then looped to register all tools into the server's tools Map.
    const toolCategories = [ messagingTools, contactTools, groupTools, chatTools, sessionTools, instanceTools, accountTools, ];

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