ninja_list_ticket_forms
Retrieve a list of all ticket forms in NinjaOne to select the correct form for new tickets.
Instructions
List all available ticket forms.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/ticketing.ts:183-183 (handler)The handler function that executes the 'ninja_list_ticket_forms' tool logic. It calls client.get('/ticketing/ticket-form') to fetch all available ticket forms from the NinjaOne API.
handler: async (_args, client: NinjaOneClient) => client.get('/ticketing/ticket-form'), - src/tools/ticketing.ts:179-181 (schema)The tool schema definition: name is 'ninja_list_ticket_forms', description is 'List all available ticket forms.', and input schema is an empty object (no required parameters).
name: 'ninja_list_ticket_forms', description: 'List all available ticket forms.', inputSchema: { type: 'object', properties: {} }, - src/tools/index.ts:13-24 (registration)The tool is registered via the ticketingTools array which is spread into ALL_TOOLS and imported by src/index.ts, where tools are mapped by name and exposed via the MCP ListToolsRequestSchema and CallToolRequestSchema handlers.
export const ALL_TOOLS = [ ...deviceTools, ...organizationTools, ...alertTools, ...activityTools, ...ticketingTools, ...queryTools, ...policyTools, ...userTools, ...backupTools, ...systemTools, ]; - src/tools/types.ts:4-8 (helper)The ToolDef interface that defines the shape of the tool definition, consisting of a 'tool' (schema) and a 'handler' function.
export interface ToolDef { tool: Tool; // eslint-disable-next-line @typescript-eslint/no-explicit-any handler: (args: any, client: NinjaOneClient) => Promise<unknown>; }