Skip to main content
Glama
umzcio
by umzcio

tdx-cmdb-create

Create new configuration items (CIs) in the TDX Configuration Management Database (CMDB) to track IT assets and services.

Instructions

Create a new TDX configuration item (CI)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
appIdNoTDX app ID (defaults to env TDX_APP_ID)
typeIdYesCI type ID
nameYesCI name
formIdNoForm ID
isActiveNoWhether CI is active
owningDepartmentIdNoOwning department ID
owningCustomerIdNoOwning customer UID
locationIdNoLocation ID
locationRoomIdNoLocation room ID
maintenanceScheduleIdNoMaintenance schedule ID
externalIdNoExternal ID
attributesNoCustom attributes

Implementation Reference

  • The asynchronous handler function that processes the request for 'tdx-cmdb-create', mapping input parameters to the API request body and invoking the TDX client.
    async (params) => {
      const app = params.appId ?? defaultAppId;
      const body: Record<string, unknown> = {
        TypeID: params.typeId,
        Name: params.name,
      };
      if (params.formId !== undefined) body.FormID = params.formId;
      if (params.isActive !== undefined) body.IsActive = params.isActive;
      if (params.owningDepartmentId !== undefined) body.OwningDepartmentID = params.owningDepartmentId;
      if (params.owningCustomerId !== undefined) body.OwningCustomerID = params.owningCustomerId;
      if (params.locationId !== undefined) body.LocationID = params.locationId;
      if (params.locationRoomId !== undefined) body.LocationRoomID = params.locationRoomId;
      if (params.maintenanceScheduleId !== undefined) body.MaintenanceScheduleID = params.maintenanceScheduleId;
      if (params.externalId !== undefined) body.ExternalID = params.externalId;
      if (params.attributes) {
        body.Attributes = params.attributes.map((a) => ({ ID: a.id, Value: String(a.value) }));
      }
      try {
        const result = await client.post(`/${app}/cmdb`, body);
        return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
      } catch (e: unknown) {
        return { content: [{ type: "text", text: String(e) }], isError: true };
      }
    }
  • Zod schema definitions for the input parameters of the 'tdx-cmdb-create' tool.
    {
      appId: z.number().optional().describe("TDX app ID (defaults to env TDX_APP_ID)"),
      typeId: z.number().describe("CI type ID"),
      name: z.string().describe("CI name"),
      formId: z.number().optional().describe("Form ID"),
      isActive: z.boolean().optional().describe("Whether CI is active"),
      owningDepartmentId: z.number().optional().describe("Owning department ID"),
      owningCustomerId: z.string().optional().describe("Owning customer UID"),
      locationId: z.number().optional().describe("Location ID"),
      locationRoomId: z.number().optional().describe("Location room ID"),
      maintenanceScheduleId: z.number().optional().describe("Maintenance schedule ID"),
      externalId: z.string().optional().describe("External ID"),
      attributes: z.array(z.object({
        id: z.number().describe("Custom attribute ID"),
        value: z.union([z.string(), z.number(), z.boolean()]).describe("Attribute value"),
      })).optional().describe("Custom attributes"),
    },
  • src/tools/cmdb.ts:8-52 (registration)
    Registration of the 'tdx-cmdb-create' tool using the server.tool method.
    server.tool(
      "tdx-cmdb-create",
      "Create a new TDX configuration item (CI)",
      {
        appId: z.number().optional().describe("TDX app ID (defaults to env TDX_APP_ID)"),
        typeId: z.number().describe("CI type ID"),
        name: z.string().describe("CI name"),
        formId: z.number().optional().describe("Form ID"),
        isActive: z.boolean().optional().describe("Whether CI is active"),
        owningDepartmentId: z.number().optional().describe("Owning department ID"),
        owningCustomerId: z.string().optional().describe("Owning customer UID"),
        locationId: z.number().optional().describe("Location ID"),
        locationRoomId: z.number().optional().describe("Location room ID"),
        maintenanceScheduleId: z.number().optional().describe("Maintenance schedule ID"),
        externalId: z.string().optional().describe("External ID"),
        attributes: z.array(z.object({
          id: z.number().describe("Custom attribute ID"),
          value: z.union([z.string(), z.number(), z.boolean()]).describe("Attribute value"),
        })).optional().describe("Custom attributes"),
      },
      async (params) => {
        const app = params.appId ?? defaultAppId;
        const body: Record<string, unknown> = {
          TypeID: params.typeId,
          Name: params.name,
        };
        if (params.formId !== undefined) body.FormID = params.formId;
        if (params.isActive !== undefined) body.IsActive = params.isActive;
        if (params.owningDepartmentId !== undefined) body.OwningDepartmentID = params.owningDepartmentId;
        if (params.owningCustomerId !== undefined) body.OwningCustomerID = params.owningCustomerId;
        if (params.locationId !== undefined) body.LocationID = params.locationId;
        if (params.locationRoomId !== undefined) body.LocationRoomID = params.locationRoomId;
        if (params.maintenanceScheduleId !== undefined) body.MaintenanceScheduleID = params.maintenanceScheduleId;
        if (params.externalId !== undefined) body.ExternalID = params.externalId;
        if (params.attributes) {
          body.Attributes = params.attributes.map((a) => ({ ID: a.id, Value: String(a.value) }));
        }
        try {
          const result = await client.post(`/${app}/cmdb`, body);
          return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
        } catch (e: unknown) {
          return { content: [{ type: "text", text: String(e) }], isError: true };
        }
      }
    );
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. While 'Create' implies a write operation, the description doesn't address important behavioral aspects like required permissions, whether the operation is idempotent, what happens on duplicate names, error conditions, or what the response contains. This leaves significant gaps for an agent trying to use this tool effectively.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise - a single sentence that directly states the tool's purpose with no wasted words. It's front-loaded with the essential information and doesn't include any unnecessary elaboration or redundant information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a creation tool with 12 parameters, no annotations, and no output schema, the description is insufficient. It doesn't explain what a 'configuration item' is in the TDX context, doesn't provide usage context relative to sibling tools, and offers no behavioral guidance. The agent would struggle to use this tool correctly without additional context about TDX's data model and this specific operation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has 100% description coverage, so all parameters are documented in the structured schema. The description adds no additional parameter information beyond what's already in the schema descriptions. This meets the baseline expectation when schema coverage is complete, but doesn't provide any extra value like explaining relationships between parameters or providing examples.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Create') and resource ('TDX configuration item (CI)'), making the purpose immediately understandable. However, it doesn't differentiate this tool from sibling creation tools like 'tdx-asset-create' or 'tdx-kb-create', which would require specifying what makes a CI distinct from assets or knowledge base entries.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. With multiple sibling creation tools (tdx-asset-create, tdx-kb-create, tdx-project-create, tdx-ticket-create), there's no indication of what distinguishes a 'configuration item' from these other entities or when this specific creation tool is appropriate.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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