get_user
Retrieve user profile information from the VOYP telephony system to access calling capabilities and manage communication settings.
Instructions
Retrieve user profile
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_user"
}
}Input 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: [] } }]