Skip to main content
Glama

get_ticket

Retrieve specific ticket details by ID using the MCP server mcptix, enabling efficient ticket management and task tracking for AI assistants.

Instructions

Get a ticket by ID

Input Schema

NameRequiredDescriptionDefault
idYesTicket ID

Input Schema (JSON Schema)

{ "properties": { "id": { "description": "Ticket ID", "type": "string" } }, "required": [ "id" ], "type": "object" }

Implementation Reference

  • The handler function that executes the get_ticket tool logic: validates the ticket ID, fetches the ticket using TicketQueries.getTicketById, and returns it wrapped in a success response.
    export function handleGetTicket(ticketQueries: TicketQueries, args: any): ToolResponse { if (!args.id) { Logger.warn('McpServer', 'Ticket ID is required'); throw new Error('Ticket ID is required'); } Logger.debug('McpServer', `Getting ticket with ID: ${args.id}`); const ticket = ticketQueries.getTicketById(args.id); if (!ticket) { Logger.warn('McpServer', `Ticket with ID ${args.id} not found`); throw new Error(`Ticket with ID ${args.id} not found`); } Logger.debug('McpServer', `Found ticket: ${args.id}`); return createSuccessResponse(ticket); }
  • The JSON schema definition for the get_ticket tool, specifying the required 'id' parameter.
    name: 'get_ticket', description: 'Get a ticket by ID', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Ticket ID', }, }, required: ['id'], }, },
  • The registration of the get_ticket tool in the MCP CallToolRequestSchema handler switch statement, dispatching to the handleGetTicket function.
    case 'get_ticket': return handleGetTicket(ticketQueries, args);

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ownlytics/mcptix'

If you have feedback or need assistance with the MCP directory API, please join our Discord server