ninja_list_ticketing_users
Retrieve all app users and contacts available in the ticketing system for user management or ticket assignment.
Instructions
List all app users and contacts available in the ticketing system.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/ticketing.ts:206-207 (handler)The handler function that executes the 'ninja_list_ticketing_users' tool logic. It makes a GET request to '/ticketing/app-user-contact' to list all app users and contacts.
handler: async (_args, client: NinjaOneClient) => client.get('/ticketing/app-user-contact'), - src/tools/ticketing.ts:201-204 (schema)The tool definition including name, description, and input schema. The tool takes no parameters (empty object schema).
tool: { name: 'ninja_list_ticketing_users', description: 'List all app users and contacts available in the ticketing system.', inputSchema: { type: 'object', properties: {} }, - src/tools/index.ts:13-18 (registration)The tool is registered via ALL_TOOLS array which spreads ticketingTools. This array is used to build the tool map and list tools in the MCP server.
export const ALL_TOOLS = [ ...deviceTools, ...organizationTools, ...alertTools, ...activityTools, ...ticketingTools, - src/index.ts:24-24 (registration)The MCP server maps tool names to handlers and registers tools via ListToolsRequestSchema and CallToolRequestSchema.
const toolMap = new Map(ALL_TOOLS.map((def) => [def.tool.name, def.handler])); - src/tools/types.ts:4-8 (helper)The ToolDef interface that defines the shape of each tool definition, including the tool metadata and handler function.
export interface ToolDef { tool: Tool; // eslint-disable-next-line @typescript-eslint/no-explicit-any handler: (args: any, client: NinjaOneClient) => Promise<unknown>; }