Skip to main content
Glama
umzcio
by umzcio

tdx-ticket-feed-add

Add comments or feed entries to TDX tickets to document updates, communicate with stakeholders, and maintain ticket history.

Instructions

Add a comment/feed entry to a TDX ticket

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
appIdNoTDX app ID (defaults to env TDX_APP_ID)
idYesTicket ID
commentsYesComment text (HTML supported)
isPrivateNoWhether the comment is private (default false)
notifyNoUIDs to notify

Implementation Reference

  • The tool "tdx-ticket-feed-add" is defined and its handler implemented within registerTicketTools. It takes ticket ID, comments, isPrivate, and notify parameters, constructs a request body, and calls the TDX client to add a feed entry/comment to a ticket.
    server.tool(
      "tdx-ticket-feed-add",
      "Add a comment/feed entry to a TDX ticket",
      {
        appId: z.number().optional().describe("TDX app ID (defaults to env TDX_APP_ID)"),
        id: z.number().describe("Ticket ID"),
        comments: z.string().describe("Comment text (HTML supported)"),
        isPrivate: z.boolean().optional().describe("Whether the comment is private (default false)"),
        notify: z.array(z.string()).optional().describe("UIDs to notify"),
      },
      async (params) => {
        const app = params.appId ?? defaultAppId;
        const body: Record<string, unknown> = {
          Comments: params.comments,
        };
        if (params.isPrivate !== undefined) body.IsPrivate = params.isPrivate;
        if (params.notify !== undefined) body.Notify = params.notify;
        try {
          const result = await client.post(`/${app}/tickets/${params.id}/feed`, body);
          return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
        } catch (e: unknown) {
          return { content: [{ type: "text", text: String(e) }], isError: true };
        }
      }
    );

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/umzcio/TeamDynamix-MCP-Connector'

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