tdx-cmdb-delete
Remove configuration items from the TDX CMDB by specifying the CI ID to manage IT asset records.
Instructions
Delete 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 |
Implementation Reference
- src/tools/cmdb.ts:91-107 (handler)The tool 'tdx-cmdb-delete' is registered and implemented in src/tools/cmdb.ts. The handler uses the 'tdx-client' instance to perform a DELETE request to the TDX API.
server.tool( "tdx-cmdb-delete", "Delete a TDX configuration item", { appId: z.number().optional().describe("TDX app ID (defaults to env TDX_APP_ID)"), id: z.number().describe("CI ID"), }, async (params) => { const app = params.appId ?? defaultAppId; try { await client.delete(`/${app}/cmdb/${params.id}`); return { content: [{ type: "text", text: "CI deleted successfully" }] }; } catch (e: unknown) { return { content: [{ type: "text", text: String(e) }], isError: true }; } } );