tdx-asset-get
Retrieve specific asset information from the TeamDynamix platform by providing the asset ID, enabling IT service management through structured data access.
Instructions
Get a TDX asset by ID
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:68-84 (handler)The handler implementation for the "tdx-asset-get" MCP tool, which fetches a TDX asset by ID using the client.
server.tool( "tdx-asset-get", "Get a TDX asset by ID", { 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 { const result = await client.get(`/${app}/assets/${params.id}`); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } catch (e: unknown) { return { content: [{ type: "text", text: String(e) }], isError: true }; } } );