tdx-account-get
Retrieve TDX account or department details by entering the account ID. This tool enables AI-assisted IT service management through the TDX MCP Server.
Instructions
Get a TDX account/department by ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Account ID |
Implementation Reference
- src/tools/accounts.ts:6-20 (handler)The implementation of the 'tdx-account-get' tool handler, which uses the TDX client to fetch an account by its ID.
server.tool( "tdx-account-get", "Get a TDX account/department by ID", { id: z.number().describe("Account ID"), }, async (params) => { try { const result = await client.get(`/accounts/${params.id}`); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } catch (e: unknown) { return { content: [{ type: "text", text: String(e) }], isError: true }; } } );