ollama_explain_code
Explain how a code section, algorithm, or pattern works using a local Ollama model. Add context to get targeted explanations of complex code.
Instructions
Explain how code works using Ollama. Use this to understand complex code sections, algorithms, or patterns.
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": {
"code": "<code>"
},
"name": "ollama_explain_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The code to explain | |
| model | No | Ollama model to use (default: mistral-small) | gemma3:12b |
| context | No | Additional context about what you want to understand |