Set model settings
set_model_settingsCreate a tuned Ollama model variant from an installed base model; preview the Modelfile and settings, then set confirm=true to write without overwriting existing names.
Instructions
Create a tuned Ollama variant via /api/create from an installed base model. Use install_model first if the base is missing. Does not overwrite an existing name. Needs confirm=true to write. Returns JSON with wrote, variant and a Modelfile preview.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"base_model": "<base_model>",
"variant_name": "<variant_name>"
},
"name": "set_model_settings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_p | No | Nucleus sampling 0 to 1. Omit to leave unset. | |
| system | No | System prompt for the variant. Max 20000 characters. Omit to leave unset. | |
| confirm | No | Set true to POST /api/create. Default false (preview). | |
| num_ctx | No | Context window in tokens. Positive integer. Omit to leave unset. | |
| base_model | Yes | Installed base model name, for example llama3.2:3b. | |
| temperature | No | Sampling temperature 0 to 2. Omit to leave unset. | |
| variant_name | Yes | New variant name to create. Must not already exist. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |