Skip to main content
Glama

delete_model

Remove trained models from cloud storage to manage resources and maintain control over your AI model inventory.

Instructions

Delete a trained model from cloud storage.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
model_idYesModel ID to delete

Implementation Reference

  • The implementation of the deleteUserModel method, which makes the actual API call.
    async deleteUserModel(modelId: string): Promise<any> {
      return this.request("DELETE", `/api/v1/user_models/${modelId}`);
    }
  • src/mcp.ts:271-280 (registration)
    The tool registration for 'delete_model'.
      name: "delete_model",
      description: "Delete a trained model from cloud storage.",
      inputSchema: {
        type: "object" as const,
        properties: {
          model_id: { type: "string", description: "Model ID to delete" },
        },
        required: ["model_id"],
      },
    },
  • The switch case handler in the MCP server that routes to the deleteUserModel method.
    case "delete_model":
      result = await client.deleteUserModel(args!.model_id as string);
      break;

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