tdx-cmdb-feed-add
Add comments or feed entries to configuration items in TeamDynamix CMDB to document changes, provide updates, or share information with IT teams.
Instructions
Add a comment/feed entry to a TDX configuration item
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appId | No | TDX app ID (defaults to env TDX_APP_ID) | |
| id | Yes | CI 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/cmdb.ts:149-162 (handler)The handler function for 'tdx-cmdb-feed-add' that sends a POST request to add a feed entry to a CI.
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}/cmdb/${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/cmdb.ts:142-148 (schema)The schema/input validation definition for the 'tdx-cmdb-feed-add' tool.
{ appId: z.number().optional().describe("TDX app ID (defaults to env TDX_APP_ID)"), id: z.number().describe("CI 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/cmdb.ts:139-141 (registration)The tool registration for 'tdx-cmdb-feed-add'.
server.tool( "tdx-cmdb-feed-add", "Add a comment/feed entry to a TDX configuration item",