tdx-asset-feed-add
Add comments or feed entries to assets in TeamDynamix for tracking updates, documenting changes, and facilitating team communication about IT resources.
Instructions
Add a comment/feed entry to a TDX asset
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appId | No | TDX app ID (defaults to env TDX_APP_ID) | |
| id | Yes | Asset ID | |
| comments | Yes | Comment text (HTML supported) | |
| isPrivate | No | Whether the comment is private (default false) | |
| notify | No | UIDs to notify |
Implementation Reference
- src/tools/assets.ts:186-199 (handler)The handler function for the tdx-asset-feed-add tool that executes the POST request to add a feed entry to a TDX asset.
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}/assets/${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 }; } } - src/tools/assets.ts:179-185 (schema)Zod schema definition for the tdx-asset-feed-add tool inputs.
{ appId: z.number().optional().describe("TDX app ID (defaults to env TDX_APP_ID)"), id: z.number().describe("Asset 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"), }, - src/tools/assets.ts:176-177 (registration)Registration of the tdx-asset-feed-add tool within the MCP server.
server.tool( "tdx-asset-feed-add",