Skip to main content
Glama
OtotaO
by OtotaO

check_installation

Verify Unsloth installation status to ensure proper setup for faster training and reduced memory usage in large language model workflows.

Instructions

Check if Unsloth is properly installed

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler for the 'check_installation' tool: calls checkUnslothInstallation() and returns success or error message based on installation status.
    case 'check_installation': { const isInstalled = await this.checkUnslothInstallation(); if (!isInstalled) { return { content: [ { type: 'text', text: 'Unsloth is not installed. Please install it with: pip install unsloth', }, ], isError: true, }; } return { content: [ { type: 'text', text: 'Unsloth is properly installed.', }, ], }; }
  • src/index.ts:70-77 (registration)
    Registration of the 'check_installation' tool in the ListTools response, including name, description, and empty input schema.
    { name: 'check_installation', description: 'Check if Unsloth is properly installed', inputSchema: { type: 'object', properties: {}, }, },
  • Helper function that checks Unsloth installation by attempting to import it via Python exec command.
    private async checkUnslothInstallation(): Promise<boolean> { try { await execPromise('python -c "import unsloth"'); return true; } catch (error) { return false; } }

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/OtotaO/unsloth-mcp-server'

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