tdx-group-search
Search for TDX groups using text queries and filters for active status, associated app ID, and result limits to manage IT service management data.
Instructions
Search TDX groups
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| searchText | No | Full-text search query | |
| isActive | No | Filter by active status | |
| hasAppId | No | Filter by associated app ID | |
| maxResults | No | Max results to return (default 25) |
Implementation Reference
- src/tools/groups.ts:22-44 (handler)The tdx-group-search tool implementation, including schema validation and handler logic.
server.tool( "tdx-group-search", "Search TDX groups", { searchText: z.string().optional().describe("Full-text search query"), isActive: z.boolean().optional().describe("Filter by active status"), hasAppId: z.number().optional().describe("Filter by associated app ID"), maxResults: z.number().optional().describe("Max results to return (default 25)"), }, async (params) => { const body: Record<string, unknown> = {}; if (params.searchText !== undefined) body.NameLike = params.searchText; if (params.isActive !== undefined) body.IsActive = params.isActive; if (params.hasAppId !== undefined) body.HasAppID = params.hasAppId; if (params.maxResults !== undefined) body.MaxResults = params.maxResults; try { const result = await client.post("/groups/search", body); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } catch (e: unknown) { return { content: [{ type: "text", text: String(e) }], isError: true }; } } );