analyze_call
Analyze sales call transcripts to identify sentiment, objections, commitments, next steps, and calculate deal health scores for actionable insights.
Instructions
Full sales call analysis — sentiment, objections, commitments, next steps, deal health score. Cost: $0.025 USDC. Service: callsight.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| transcript | Yes | ||
| call_type | No | sales | |
| product | No |
Implementation Reference
- src/index.ts:166-223 (handler)The request handler for 'CallToolRequestSchema' which handles dynamic tool execution. It resolves tool names from a fetched registry and calls the 'callTool' helper.
server.setRequestHandler(CallToolRequestSchema, async (request) => { const { name, arguments: args } = request.params; let registry: Registry; try { registry = await fetchRegistry(); } catch (error) { return { content: [ { type: "text", text: JSON.stringify({ error: "Failed to fetch tool registry", detail: String(error) }), }, ], }; } const tool = registry.tools.find((t) => t.name === name); if (!tool) { return { content: [ { type: "text", text: JSON.stringify({ error: `Tool '${name}' not found`, available_tools: registry.tools.map((t) => t.name), }), }, ], }; } try { const result = await callTool(tool, args as Record<string, unknown>); return { content: [ { type: "text", text: JSON.stringify(result, null, 2), }, ], }; } catch (error) { return { content: [ { type: "text", text: JSON.stringify({ error: "Tool call failed", tool: name, service: tool.service, detail: String(error), }), }, ], }; } });