Skip to main content
Glama
umzcio
by umzcio

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

Implementation Reference

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

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