ninja_get_ticket_attributes
Retrieve custom attribute definitions for tickets to manage and utilize custom fields in your NinjaOne RMM platform.
Instructions
Get the custom attribute definitions available for tickets.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/ticketing.ts:210-216 (handler)The tool definition for 'ninja_get_ticket_attributes' with its handler that calls GET /ticketing/attributes to retrieve custom attribute definitions for tickets.
tool: { name: 'ninja_get_ticket_attributes', description: 'Get the custom attribute definitions available for tickets.', inputSchema: { type: 'object', properties: {} }, }, handler: async (_args, client: NinjaOneClient) => client.get('/ticketing/attributes'), }, - src/tools/ticketing.ts:213-213 (schema)Input schema for 'ninja_get_ticket_attributes' — an empty object (no parameters required).
inputSchema: { type: 'object', properties: {} }, - src/tools/index.ts:13-13 (registration)The tool is registered via the ticketingTools array, which is spread into ALL_TOOLS and then mapped into the MCP server's tool list and handler map in src/index.ts (lines 24 and 32).
export const ALL_TOOLS = [ - src/tools/types.ts:4-8 (helper)The ToolDef type 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>; }