Skip to main content
Glama

whmcs_add_ticket_reply

Add a reply to an existing support ticket in WHMCS to provide updates, answer questions, or resolve client issues.

Instructions

Reply to an existing support ticket

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ticketidYesTicket ID
messageYesReply message
clientidNoClient ID
contactidNoContact ID
nameNoName
emailNoEmail
adminusernameNoAdmin username
statusNoNew ticket status
noemailNoDo not send email
markdownNoMessage contains markdown

Implementation Reference

  • Core handler implementation: WhmcsApiClient.addTicketReply method that performs the HTTP POST to WHMCS API's 'AddTicketReply' action.
    async addTicketReply(params: { ticketid: number; message: string; clientid?: number; contactid?: number; name?: string; email?: string; adminusername?: string; status?: string; noemail?: boolean; customfields?: string; attachments?: Array<{ name: string; data: string }>; markdown?: boolean; }) { return this.call<WhmcsApiResponse>('AddTicketReply', params); }
  • src/index.ts:482-506 (registration)
    MCP server tool registration for 'whmcs_add_ticket_reply', defining Zod input schema and thin wrapper handler invoking the client method.
    server.registerTool( 'whmcs_add_ticket_reply', { title: 'Add Ticket Reply', description: 'Reply to an existing support ticket', inputSchema: { ticketid: z.number().describe('Ticket ID'), message: z.string().describe('Reply message'), clientid: z.number().optional().describe('Client ID'), contactid: z.number().optional().describe('Contact ID'), name: z.string().optional().describe('Name'), email: z.string().optional().describe('Email'), adminusername: z.string().optional().describe('Admin username'), status: z.string().optional().describe('New ticket status'), noemail: z.boolean().optional().describe('Do not send email'), markdown: z.boolean().optional().describe('Message contains markdown'), }, }, async (params) => { const result = await whmcsClient.addTicketReply(params); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }], }; } );
  • TypeScript parameter type definitions for the addTicketReply method inputs, matching the tool schema.
    ticketid: number; message: string; clientid?: number; contactid?: number; name?: string; email?: string; adminusername?: string; status?: string; noemail?: boolean; customfields?: string; attachments?: Array<{ name: string; data: string }>; markdown?: boolean;

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/scarecr0w12/whmcs-mcp-server'

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