tdx-people-lookup
Find TDX users by searching with name, email, or username to identify people within the TeamDynamix platform.
Instructions
Quick lookup of TDX people by search string (name, email, or username)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| searchText | Yes | Search string (name, email, or username) | |
| maxResults | No | Max results to return (default 10) |
Implementation Reference
- src/tools/people.ts:56-75 (handler)The "tdx-people-lookup" tool definition and its asynchronous handler function implementation, which calls the TDX client to perform a lookup based on a search string.
server.tool( "tdx-people-lookup", "Quick lookup of TDX people by search string (name, email, or username)", { searchText: z.string().describe("Search string (name, email, or username)"), maxResults: z.number().optional().describe("Max results to return (default 10)"), }, async (params) => { const query: Record<string, string> = { searchText: params.searchText, }; if (params.maxResults !== undefined) query.maxResults = String(params.maxResults); try { const result = await client.get("/people/lookup", query); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } catch (e: unknown) { return { content: [{ type: "text", text: String(e) }], isError: true }; } } );