tdx-people-get
Retrieve a person's information from TeamDynamix using their unique identifier (UID) to access contact details and user data.
Instructions
Get a TDX person by UID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | Person UID |
Implementation Reference
- src/tools/people.ts:6-20 (handler)The implementation of the 'tdx-people-get' tool. It registers the tool with the MCP server, defines its input schema (UID), and handles the logic to fetch person data via the TdxClient.
server.tool( "tdx-people-get", "Get a TDX person by UID", { uid: z.string().describe("Person UID"), }, async (params) => { try { const result = await client.get(`/people/${params.uid}`); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } catch (e: unknown) { return { content: [{ type: "text", text: String(e) }], isError: true }; } } );