tdx-account-search
Search for TDX accounts and departments by name or other criteria, with filters for active status and result limits.
Instructions
Search TDX accounts/departments
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| searchText | No | Full-text search query | |
| isActive | No | Filter by active status | |
| maxResults | No | Max results to return (default 25) |
Implementation Reference
- src/tools/accounts.ts:22-42 (handler)Implementation of the 'tdx-account-search' tool, including its registration and execution logic.
server.tool( "tdx-account-search", "Search TDX accounts/departments", { searchText: z.string().optional().describe("Full-text search query"), isActive: z.boolean().optional().describe("Filter by active status"), maxResults: z.number().optional().describe("Max results to return (default 25)"), }, async (params) => { const body: Record<string, unknown> = {}; if (params.searchText !== undefined) body.SearchText = params.searchText; if (params.isActive !== undefined) body.IsActive = params.isActive; if (params.maxResults !== undefined) body.MaxResults = params.maxResults; try { const result = await client.post("/accounts/search", body); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } catch (e: unknown) { return { content: [{ type: "text", text: String(e) }], isError: true }; } } );