ninja_list_ticket_statuses
Retrieve all configured ticket statuses to streamline workflow management in NinjaOne. Use this tool to get a complete list of statuses for filtering or automation.
Instructions
List all available ticket statuses.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/ticketing.ts:175-176 (handler)The handler function for the ninja_list_ticket_statuses tool. It makes a GET request to '/ticketing/statuses' endpoint via the NinjaOneClient.
handler: async (_args, client: NinjaOneClient) => client.get('/ticketing/statuses'), }, - src/tools/ticketing.ts:173-173 (schema)The input schema for ninja_list_ticket_statuses - an empty object with no required parameters.
inputSchema: { type: 'object', properties: {} }, - src/tools/ticketing.ts:169-184 (registration)The tool definition for ninja_list_ticket_statuses registered within the ticketingTools array. It is exported and later aggregated into ALL_TOOLS in src/tools/index.ts.
{ tool: { name: 'ninja_list_ticket_statuses', description: 'List all available ticket statuses.', inputSchema: { type: 'object', properties: {} }, }, handler: async (_args, client: NinjaOneClient) => client.get('/ticketing/statuses'), }, { tool: { name: 'ninja_list_ticket_forms', description: 'List all available ticket forms.', inputSchema: { type: 'object', properties: {} }, }, handler: async (_args, client: NinjaOneClient) => client.get('/ticketing/ticket-form'), }, - src/tools/index.ts:13-24 (registration)The ALL_TOOLS array aggregates all tool definitions including ticketingTools (which contains ninja_list_ticket_statuses) for registration with the MCP server.
export const ALL_TOOLS = [ ...deviceTools, ...organizationTools, ...alertTools, ...activityTools, ...ticketingTools, ...queryTools, ...policyTools, ...userTools, ...backupTools, ...systemTools, ]; - src/index.ts:31-32 (registration)The MCP server's ListToolsRequestSchema handler registers all tools (including ninja_list_ticket_statuses) by returning their metadata.
server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: ALL_TOOLS.map((def) => def.tool),