Skip to main content
Glama
umzcio
by umzcio

tdx-kb-create

Create new knowledge base articles in TeamDynamix (TDX) by specifying category, subject, body, and optional metadata like status, tags, and custom attributes.

Instructions

Create a new TDX knowledge base article

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
appIdNoTDX app ID (defaults to env TDX_APP_ID)
categoryIdYesKB category ID
subjectYesArticle subject/title
bodyYesArticle body (HTML)
summaryNoArticle summary
statusNoArticle status (0=None, 1=Draft, 2=Approved, 3=Archived)
orderNoSort order
reviewDateNoReview date (ISO)
ownerUidNoOwner person UID
ownerGroupIdNoOwner group ID
tagsNoTags
attributesNoCustom attributes

Implementation Reference

  • The handler function that executes the creation of a TDX knowledge base article.
    async (params) => {
      const app = params.appId ?? defaultAppId;
      const body: Record<string, unknown> = {
        CategoryID: params.categoryId,
        Subject: params.subject,
        Body: params.body,
      };
      if (params.summary !== undefined) body.Summary = params.summary;
      if (params.status !== undefined) body.Status = params.status;
      if (params.order !== undefined) body.Order = params.order;
      if (params.reviewDate !== undefined) body.ReviewDate = params.reviewDate;
      if (params.ownerUid !== undefined) body.OwnerUid = params.ownerUid;
      if (params.ownerGroupId !== undefined) body.OwnerGroupID = params.ownerGroupId;
      if (params.tags !== undefined) body.Tags = params.tags;
      if (params.attributes) {
        body.Attributes = params.attributes.map((a) => ({ ID: a.id, Value: String(a.value) }));
      }
      try {
        const result = await client.post(`/${app}/knowledgebase`, 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 defining the input parameters for the tdx-kb-create tool.
    {
      appId: z.number().optional().describe("TDX app ID (defaults to env TDX_APP_ID)"),
      categoryId: z.number().describe("KB category ID"),
      subject: z.string().describe("Article subject/title"),
      body: z.string().describe("Article body (HTML)"),
      summary: z.string().optional().describe("Article summary"),
      status: z.number().optional().describe("Article status (0=None, 1=Draft, 2=Approved, 3=Archived)"),
      order: z.number().optional().describe("Sort order"),
      reviewDate: z.string().optional().describe("Review date (ISO)"),
      ownerUid: z.string().optional().describe("Owner person UID"),
      ownerGroupId: z.number().optional().describe("Owner group ID"),
      tags: z.array(z.string()).optional().describe("Tags"),
      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/kb.ts:8-52 (registration)
    Registration of the tdx-kb-create tool using server.tool().
    server.tool(
      "tdx-kb-create",
      "Create a new TDX knowledge base article",
      {
        appId: z.number().optional().describe("TDX app ID (defaults to env TDX_APP_ID)"),
        categoryId: z.number().describe("KB category ID"),
        subject: z.string().describe("Article subject/title"),
        body: z.string().describe("Article body (HTML)"),
        summary: z.string().optional().describe("Article summary"),
        status: z.number().optional().describe("Article status (0=None, 1=Draft, 2=Approved, 3=Archived)"),
        order: z.number().optional().describe("Sort order"),
        reviewDate: z.string().optional().describe("Review date (ISO)"),
        ownerUid: z.string().optional().describe("Owner person UID"),
        ownerGroupId: z.number().optional().describe("Owner group ID"),
        tags: z.array(z.string()).optional().describe("Tags"),
        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> = {
          CategoryID: params.categoryId,
          Subject: params.subject,
          Body: params.body,
        };
        if (params.summary !== undefined) body.Summary = params.summary;
        if (params.status !== undefined) body.Status = params.status;
        if (params.order !== undefined) body.Order = params.order;
        if (params.reviewDate !== undefined) body.ReviewDate = params.reviewDate;
        if (params.ownerUid !== undefined) body.OwnerUid = params.ownerUid;
        if (params.ownerGroupId !== undefined) body.OwnerGroupID = params.ownerGroupId;
        if (params.tags !== undefined) body.Tags = params.tags;
        if (params.attributes) {
          body.Attributes = params.attributes.map((a) => ({ ID: a.id, Value: String(a.value) }));
        }
        try {
          const result = await client.post(`/${app}/knowledgebase`, 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 mention authentication requirements, permission levels, whether the operation is idempotent, what happens on failure, or what the response looks like. For a creation tool with 12 parameters, this leaves significant behavioral gaps.

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 a single, efficient sentence that communicates the core purpose without unnecessary words. It's appropriately sized for a tool with comprehensive schema documentation and gets straight to the point with zero wasted verbiage.

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 inadequate. It doesn't explain what happens after creation, what the return value contains, error conditions, or how this tool relates to the broader knowledge base workflow. The agent would need to guess about many important operational aspects.

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?

With 100% schema description coverage, the schema already documents all 12 parameters thoroughly. The description adds no parameter-specific information beyond what's in the schema, so it meets the baseline expectation but doesn't provide additional value regarding parameter usage, relationships, or practical 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 ('new TDX knowledge base article'), making the purpose immediately understandable. However, it doesn't differentiate this tool from its sibling 'tdx-kb-update', which could be important for an agent to distinguish between creation and modification operations.

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 tools including 'tdx-kb-update' and 'tdx-kb-delete', there's no indication of prerequisites, appropriate contexts, or when other tools might be more suitable for knowledge base operations.

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