get_call
Retrieve specific call details from VOYP's telephony system using a call ID to access information about call status, scheduling, and secure telephony actions.
Instructions
Retrieve call details
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Call Id |
Implementation Reference
- src/index.ts:505-528 (handler)Handler function that retrieves call details by making a GET request to the Voyp API with the provided call ID and returns the JSON response or an error message.} else if (request.params.name === "get_call") { const id = request.params.arguments?.id; try { const response = await this.axiosInstance.get<StartCallResponse>(API_CONFIG.ENDPOINTS.CALL + id); 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:289-302 (schema)Tool schema definition including name, description, and input schema requiring a 'id' string parameter.{ name: "get_call", description: "Retrieve call details", inputSchema: { type: "object", properties: { id: { type: "string", description: "Call Id" } }, required: ["id"] } },