tdx-kb-get
Retrieve knowledge base articles from TeamDynamix using article IDs to access IT service management documentation and solutions.
Instructions
Get a TDX knowledge base article by ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appId | No | TDX app ID (defaults to env TDX_APP_ID) | |
| id | Yes | KB article ID |
Implementation Reference
- src/tools/kb.ts:54-70 (handler)The tdx-kb-get tool implementation handler and registration in src/tools/kb.ts. It takes an optional appId and a required id, then calls the client's get method.
server.tool( "tdx-kb-get", "Get a TDX knowledge base article by ID", { appId: z.number().optional().describe("TDX app ID (defaults to env TDX_APP_ID)"), id: z.number().describe("KB article ID"), }, async (params) => { const app = params.appId ?? defaultAppId; try { const result = await client.get(`/${app}/knowledgebase/${params.id}`); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } catch (e: unknown) { return { content: [{ type: "text", text: String(e) }], isError: true }; } } );