Skip to main content
Glama
umzcio
by umzcio

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
NameRequiredDescriptionDefault
appIdNoTDX app ID (defaults to env TDX_APP_ID)
idYesAsset ID

Implementation Reference

  • 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 };
      }
    }
  • 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 };
        }
      }
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/umzcio/TeamDynamix-MCP-Connector'

If you have feedback or need assistance with the MCP directory API, please join our Discord server