remove_model
Delete a specified model by its saved name using the Enkrypt AI MCP Server. Returns a response with details of the deleted model for verification.
Instructions
Remove a model.
Args: test_model_saved_name: The saved name of the model to be removed.
Returns: A dictionary containing the response message and details of the deleted model.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| test_model_saved_name | Yes |
Input Schema (JSON Schema)
{
"properties": {
"test_model_saved_name": {
"title": "Test Model Saved Name",
"type": "string"
}
},
"required": [
"test_model_saved_name"
],
"title": "remove_modelArguments",
"type": "object"
}
Implementation Reference
- src/mcp_server.py:396-411 (handler)The handler function for the 'remove_model' tool. It takes the saved name of the model, calls model_client.delete_model to remove it, and returns the response as a dictionary. The @mcp.tool() decorator registers it as an MCP tool.@mcp.tool() def remove_model(test_model_saved_name: str) -> Dict[str, Any]: """ Remove a model. Args: test_model_saved_name: The saved name of the model to be removed. Returns: A dictionary containing the response message and details of the deleted model. """ # Remove the model delete_response = model_client.delete_model(model_saved_name=test_model_saved_name) # Print as a dictionary return delete_response.to_dict()