Skip to main content
Glama

get_status

Check the processing status of a text-to-speech synthesis request by providing the request ID to monitor progress and retrieve output details.

Instructions

Get processing status for a synthesis request

Input Schema

NameRequiredDescriptionDefault
requestIdYesRequest ID to check status for

Input Schema (JSON Schema)

{ "properties": { "requestId": { "description": "Request ID to check status for", "type": "string" } }, "required": [ "requestId" ], "type": "object" }

Implementation Reference

  • Core implementation of the get_status tool. Retrieves the status and result of a TTS synthesis request from the activeRequests Map using the provided requestId.
    getStatus(requestId: string) { const request = this.activeRequests.get(requestId); if (request) { return { success: true, requestId, status: request.status, result: request.result }; } else { return { success: false, error: `Request ${requestId} not found` }; } }
  • Registration of the get_status tool in the list of available tools, including its description and input schema.
    name: 'get_status', description: 'Get processing status for a synthesis request', inputSchema: { type: 'object', properties: { requestId: { type: 'string', description: 'Request ID to check status for', }, }, required: ['requestId'], }, },
  • MCP CallToolRequest handler for get_status. Calls ttsServer.getStatus and formats the response as MCP content.
    case 'get_status': const status = ttsServer.getStatus(args?.requestId as string); return { content: [ { type: 'text', text: status.success ? `🎙️ **Request Status**\n\n**ID:** ${status.requestId}\n**Status:** ${status.status}\n**Details:** ${JSON.stringify(status.result, null, 2)}` : `❌ **Error:** ${status.error}`, }, ], };
  • Input schema validation for the get_status tool, requiring a requestId string.
    inputSchema: { type: 'object', properties: { requestId: { type: 'string', description: 'Request ID to check status for', }, }, required: ['requestId'], },

Other Tools

Related Tools

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/samihalawa/advanced-tts-mcp'

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