tdx-asset-delete
Delete assets from the TeamDynamix system by specifying the asset ID, enabling IT service management cleanup and maintenance.
Instructions
Delete 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 |
Implementation Reference
- src/tools/assets.ts:131-139 (handler)The handler function that executes the TDX asset deletion using the client.
async (params) => { const app = params.appId ?? defaultAppId; try { await client.delete(`/${app}/assets/${params.id}`); return { content: [{ type: "text", text: "Asset deleted successfully" }] }; } catch (e: unknown) { return { content: [{ type: "text", text: String(e) }], isError: true }; } } - src/tools/assets.ts:124-140 (registration)The MCP tool registration for 'tdx-asset-delete' including input schema.
server.tool( "tdx-asset-delete", "Delete a TDX asset", { appId: z.number().optional().describe("TDX app ID (defaults to env TDX_APP_ID)"), id: z.number().describe("Asset ID"), }, async (params) => { const app = params.appId ?? defaultAppId; try { await client.delete(`/${app}/assets/${params.id}`); return { content: [{ type: "text", text: "Asset deleted successfully" }] }; } catch (e: unknown) { return { content: [{ type: "text", text: String(e) }], isError: true }; } } );