chat
Send prompts to local Ollama models and return replies, with optional system prompts, named conversation context, structured JSON output, and temperature control for extraction tasks.
Instructions
Send a prompt to the local model and return its reply.
Args:
prompt: The user message.
system: Optional system prompt. With conversation, only applied when the conversation starts.
conversation: Optional name; prior turns under this name are sent as context and this turn is
appended. Kept in memory for the life of this MCP server process.
model: Ollama model name (default from OLLAMA_MODEL).
format: "json", or a JSON schema object, to force structured output.
think: Enable the model's thinking mode (slower; off by default).
temperature: Sampling temperature; use 0 for extraction tasks.
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": {
"prompt": "<prompt>"
},
"name": "chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| think | No | ||
| format | No | ||
| prompt | Yes | ||
| system | No | ||
| temperature | No | ||
| conversation | No |