tdx-asset-patch
Apply partial updates to TDX assets by modifying specific fields without replacing the entire record. Use this tool to change asset information in TeamDynamix while preserving existing data.
Instructions
Partial update of 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 | |
| data | Yes | Partial asset data (PascalCase TDX field names) |
Implementation Reference
- src/tools/assets.ts:105-120 (handler)Implementation of the "tdx-asset-patch" MCP tool, which performs a partial update on a TDX asset.
server.tool( "tdx-asset-patch", "Partial update of a TDX asset", { appId: z.number().optional().describe("TDX app ID (defaults to env TDX_APP_ID)"), id: z.number().describe("Asset ID"), data: z.record(z.unknown()).describe("Partial asset data (PascalCase TDX field names)"), }, async (params) => { const app = params.appId ?? defaultAppId; try { const result = await client.patch(`/${app}/assets/${params.id}`, params.data); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } catch (e: unknown) { return { content: [{ type: "text", text: String(e) }], isError: true }; }