tdx-ticket-update
Update TDX tickets by replacing all fields with new data for IT service management workflows.
Instructions
Full update of a TDX ticket (replaces all fields)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appId | No | TDX app ID (defaults to env TDX_APP_ID) | |
| id | Yes | Ticket ID | |
| data | Yes | Full ticket data (PascalCase TDX field names) |
Implementation Reference
- src/tools/tickets.ts:78-95 (handler)Tool registration and handler for 'tdx-ticket-update'. It uses the TDX client to perform a POST request to update a ticket.
server.tool( "tdx-ticket-update", "Full update of a TDX ticket (replaces all fields)", { appId: z.number().optional().describe("TDX app ID (defaults to env TDX_APP_ID)"), id: z.number().describe("Ticket ID"), data: z.record(z.unknown()).describe("Full ticket data (PascalCase TDX field names)"), }, async (params) => { const app = params.appId ?? defaultAppId; try { const result = await client.post(`/${app}/tickets/${params.id}`, params.data); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } catch (e: unknown) { return { content: [{ type: "text", text: String(e) }], isError: true }; } } );