Skip to main content
Glama

check_engine_status

Verify the operational status of the AivisSpeech engine to ensure seamless text-to-speech conversion for Japanese AI assistants. Use this tool to monitor engine availability and functionality.

Instructions

Check if AivisSpeech engine is running

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler for the 'check_engine_status' tool. It checks if the AivisSpeech engine is running using the client and retrieves the version if available, returning a text response.
    case 'check_engine_status': { try { const isRunning = await client.isEngineRunning(); const version = isRunning ? await client.getVersion() : null; return { content: [ { type: 'text', text: isRunning ? `AivisSpeech engine is running (version: ${version})` : 'AivisSpeech engine is not running. Please start the engine at http://127.0.0.1:10101', }, ], }; } catch (error) { return { content: [ { type: 'text', text: `Error checking engine status: ${error instanceof Error ? error.message : String(error)}`, }, ], isError: true, }; } }
  • src/index.ts:76-82 (registration)
    Registration of the 'check_engine_status' tool as the only available tool when the engine is not running, including schema.
    name: 'check_engine_status', description: 'Check if AivisSpeech engine is running', inputSchema: { type: 'object', properties: {}, }, },
  • src/index.ts:162-167 (registration)
    Registration of the 'check_engine_status' tool in the full list of available tools when the engine is running, including schema.
    name: 'check_engine_status', description: 'Check if AivisSpeech engine is running', inputSchema: { type: 'object', properties: {}, },
  • Helper method isEngineRunning() in AivisSpeechClient class that checks engine status by attempting to call getVersion().
    async isEngineRunning(): Promise<boolean> { try { await this.getVersion(); return true; } catch { return false; } }
  • Helper method getVersion() in AivisSpeechClient that fetches the engine version via HTTP GET to /version endpoint.
    async getVersion(): Promise<string> { try { const response: AxiosResponse<string> = await axios.get(`${this.baseUrl}/version`); return response.data; } catch (error: any) { if (error.response) { throw new Error(`Failed to get version: HTTP ${error.response.status} - ${error.response.data}`); } else if (error.request) { throw new Error(`Failed to get version: No response from ${this.baseUrl} - ${error.message}`); } else { throw new Error(`Failed to get version: ${error.message}`); } } }

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/shinshin86/mcp-simple-aivisspeech'

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