Skip to main content
Glama

whmcs_update_ticket

Modify WHMCS support ticket details including department, priority, status, and assignee to manage customer inquiries effectively.

Instructions

Update ticket properties

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ticketidYesTicket ID
deptidNoDepartment ID
subjectNoSubject
useridNoAssign to client ID
nameNoName
emailNoEmail
priorityNoPriority
statusNoStatus
flagNoFlag to admin ID

Implementation Reference

  • The core handler implementation for the whmcs_update_ticket tool. This method constructs the API request to WHMCS's 'UpdateTicket' action with the provided parameters and handles the response.
    async updateTicket(params: { ticketid: number; deptid?: number; subject?: string; userid?: number; name?: string; email?: string; cc?: string; priority?: 'Low' | 'Medium' | 'High'; status?: string; flag?: number; removeattachments?: boolean; message?: string; markdown?: boolean; customfields?: string; }) { return this.call<WhmcsApiResponse & { ticketid: number }>('UpdateTicket', params); }
  • src/index.ts:509-531 (registration)
    Registers the 'whmcs_update_ticket' tool with the MCP server, providing title, description, Zod input schema for validation, and a thin async handler that delegates to WhmcsApiClient.updateTicket.
    'whmcs_update_ticket', { title: 'Update Ticket', description: 'Update ticket properties', inputSchema: { ticketid: z.number().describe('Ticket ID'), deptid: z.number().optional().describe('Department ID'), subject: z.string().optional().describe('Subject'), userid: z.number().optional().describe('Assign to client ID'), name: z.string().optional().describe('Name'), email: z.string().optional().describe('Email'), priority: z.enum(['Low', 'Medium', 'High']).optional().describe('Priority'), status: z.string().optional().describe('Status'), flag: z.number().optional().describe('Flag to admin ID'), }, }, async (params) => { const result = await whmcsClient.updateTicket(params); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }], }; } );
  • Zod schema for input validation of the whmcs_update_ticket tool parameters, defining required ticketid and optional fields for updating ticket properties.
    ticketid: z.number().describe('Ticket ID'), deptid: z.number().optional().describe('Department ID'), subject: z.string().optional().describe('Subject'), userid: z.number().optional().describe('Assign to client ID'), name: z.string().optional().describe('Name'), email: z.string().optional().describe('Email'), priority: z.enum(['Low', 'Medium', 'High']).optional().describe('Priority'), status: z.string().optional().describe('Status'), flag: z.number().optional().describe('Flag to admin ID'), },

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