Skip to main content
Glama

get_call_transcript_by_id

Retrieve phone call transcripts by ID using JWT authentication. Integrates with MCP JSON Database Server for secure access and management of call records.

Instructions

ID'ye göre telefon transkripti getirir

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesTranskript ID'si
tokenYesJWT token

Implementation Reference

  • Handler function for 'get_call_transcript_by_id' that validates token, checks permissions based on user role, retrieves the specific call transcript by ID from the database, enforces employee-specific access restrictions, logs the access, and returns the transcript data.
    case 'get_call_transcript_by_id': { const { token, id } = args; try { const user = checkPermissionWithToken(token, PERMISSIONS.TRANSCRIPT_READ); const transcript = db.call_transcripts.find(t => t.id === id); if (!transcript) { return { content: [{ type: 'text', text: JSON.stringify({ success: false, message: 'Transkript bulunamadı' }) }] }; } // Employee sadece kendi atandığı çağrıları görebilir if (user.role === ROLES.EMPLOYEE && transcript.assignedTo !== user.userId) { await auditLogger.permissionDenied(user.userId, user.role, 'get_call_transcript_by_id', PERMISSIONS.TRANSCRIPT_READ); return { content: [{ type: 'text', text: JSON.stringify({ success: false, message: 'Bu transkripti görüntüleme yetkiniz yok' }) }] }; } await auditLogger.dataAccessed(user.userId, user.role, 'call_transcript_detail', { transcriptId: id }); return { content: [{ type: 'text', text: JSON.stringify({ success: true, data: transcript, requestedBy: { id: user.userId, role: user.role } }, null, 2) }] }; } catch (error) { return { content: [{ type: 'text', text: JSON.stringify({ success: false, message: error.message, requiredPermission: PERMISSIONS.TRANSCRIPT_READ }) }] }; } }
  • Schema definition for the 'get_call_transcript_by_id' tool, specifying the input parameters: JWT token for authentication and numeric ID for the transcript.
    { name: 'get_call_transcript_by_id', description: 'ID\'ye göre telefon transkripti getirir', inputSchema: { type: 'object', properties: { token: { type: 'string', description: 'JWT token' }, id: { type: 'number', description: 'Transkript ID\'si' } }, required: ['token', 'id'] } },
  • src/index.js:147-158 (registration)
    Registration of the 'get_call_transcript_by_id' tool in the listTools response, including name, description, and input schema.
    { name: 'get_call_transcript_by_id', description: 'ID\'ye göre telefon transkripti getirir', inputSchema: { type: 'object', properties: { token: { type: 'string', description: 'JWT token' }, id: { type: 'number', description: 'Transkript ID\'si' } }, required: ['token', 'id'] } },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yusuferenkt/mcp-database'

If you have feedback or need assistance with the MCP directory API, please join our Discord server