Skip to main content
Glama

export_model

Export trained models from Tuning Engines cloud storage to your AWS S3 bucket for local deployment and control.

Instructions

Export a trained model from Tuning Engines cloud storage to your S3 bucket.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
model_idYesModel ID (UUID) to export
s3_bucketYesDestination S3 bucket name
s3_prefixNoOptional S3 key prefix for the exported model
s3_access_key_idYesAWS access key ID
s3_secret_access_keyYesAWS secret access key
s3_regionYesAWS region (e.g. us-east-1)
delete_afterNoDelete the model from Tuning Engines storage after export (default: false)

Implementation Reference

  • The actual implementation of the export_model logic, calling the API endpoint.
    async exportModel(
      modelId: string,
      params: {
        s3_bucket: string;
        s3_prefix?: string;
        s3_access_key_id: string;
        s3_secret_access_key: string;
        s3_region: string;
        delete_after?: boolean;
      }
    ): Promise<any> {
      return this.request(
        "POST",
        `/api/v1/user_models/${modelId}/export`,
        params
      );
    }
  • src/mcp.ts:487-491 (registration)
    Tool handler registration and argument extraction for export_model in the MCP server implementation.
    case "export_model":
      result = await client.exportModel(args!.model_id as string, {
        s3_bucket: args!.s3_bucket as string,
        s3_prefix: args?.s3_prefix as string | undefined,
        s3_access_key_id: args!.s3_access_key_id as string,

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/cerebrixos-org/tuning-engines-cli'

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