Skip to main content
Glama

get_model_status

Check TTS model initialization status to verify readiness for speech synthesis operations.

Instructions

Get the current status of the TTS model initialization

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The tool handler for 'get_model_status' which retrieves the model status via ttsClient.getStatus() and returns a formatted text response.
    case "get_model_status": { const status = await ttsClient.getStatus(); let message = `Model status: ${status.status}`; if (status.elapsedMs) { message += ` (${Math.round(status.elapsedMs / 1000)}s elapsed)`; } if (status.error) { message += `\nError: ${status.error}`; } return { content: [{ type: "text", text: message }], }; }
  • Core implementation logic in TTSClient.getStatus() that determines and returns the current status of the TTS model initialization, including states like 'initializing', 'ready', etc.
    async getStatus(): Promise<{ status: 'uninitialized' | 'initializing' | 'ready' | 'error'; elapsedMs?: number; error?: string; retryCount?: number; }> { if (!this.initializationPromise) { return { status: 'uninitialized' }; } if (this.initializationError) { return { status: 'error', error: this.initializationError.message, retryCount: this.retryCount }; } if (!this.ttsInstance) { return { status: 'initializing', elapsedMs: Date.now() - (this.initializationStartTime || 0), retryCount: this.retryCount }; } return { status: 'ready', retryCount: this.retryCount }; }
  • Tool schema definition specifying name, description, and empty input schema (no parameters required).
    const getModelStatusTool: Tool = { name: "get_model_status", description: "Get the current status of the TTS model initialization", inputSchema: { type: "object", properties: {}, required: [], }, };
  • src/index.ts:355-360 (registration)
    Registration of getModelStatusTool in the list of available tools returned by ListToolsRequest handler.
    tools: [ textToSpeechTool, textToSpeechWithOptionsTool, listVoicesTool, getModelStatusTool, ],

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/hammeiam/koroko-speech-mcp'

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