get_user
Retrieve user profile information from the VOYP telephony system to access calling capabilities and manage communication settings.
Instructions
Retrieve user profile
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:482-504 (handler)The handler function for the 'get_user' tool. It performs a GET request to the Voyp API profile endpoint and returns the JSON response or an error message.} else if (request.params.name === "get_user") { try { const response = await this.axiosInstance.get<StartCallResponse>(API_CONFIG.ENDPOINTS.USER); return { content: [{ type: "text", text: JSON.stringify(response.data) }] }; } catch (error) { if (axios.isAxiosError(error)) { return { content: [{ type: "text", text: `Voyp API error: ${error.response?.data.message ?? error.message}` }], isError: true, } } throw error; }
- src/index.ts:303-312 (registration)Registration of the 'get_user' tool in the ListTools handler, defining its name, description, and input schema (no required parameters).{ name: "get_user", description: "Retrieve user profile", inputSchema: { type: "object", properties: { }, required: [] } }]
- src/index.ts:303-312 (schema)Schema definition for the 'get_user' tool, specifying an empty object input with no properties or requirements.{ name: "get_user", description: "Retrieve user profile", inputSchema: { type: "object", properties: { }, required: [] } }]