ninja_list_notification_channels
List all notification channels configured in your NinjaOne account to review and manage alert routing.
Instructions
List all configured notification channels.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/system.ts:45-53 (handler)The handler function that executes the 'ninja_list_notification_channels' tool logic. It makes a GET request to '/notification-channels' via the NinjaOneClient.
{ tool: { name: 'ninja_list_notification_channels', description: 'List all configured notification channels.', inputSchema: { type: 'object', properties: {} }, }, handler: async (_args, client: NinjaOneClient) => client.get('/notification-channels'), }, - src/tools/system.ts:49-49 (schema)Input schema for the tool - no parameters required (empty properties object).
inputSchema: { type: 'object', properties: {} }, - src/tools/index.ts:13-23 (registration)The 'ninja_list_notification_channels' tool is registered as part of systemTools array, which is spread into the ALL_TOOLS array and exported.
export const ALL_TOOLS = [ ...deviceTools, ...organizationTools, ...alertTools, ...activityTools, ...ticketingTools, ...queryTools, ...policyTools, ...userTools, ...backupTools, ...systemTools, - src/tools/types.ts:4-8 (helper)The ToolDef interface used to type the tool definition, including the 'tool' object (name, description, inputSchema) and the 'handler' function.
export interface ToolDef { tool: Tool; // eslint-disable-next-line @typescript-eslint/no-explicit-any handler: (args: any, client: NinjaOneClient) => Promise<unknown>; }