Skip to main content
Glama
Unified MCP Server

Unified MCP Server

by qingyunyupan

ollama_chat_completion

Generate OpenAI-compatible chat completions from local Ollama models by sending conversation messages, with optional temperature and timeout controls.

Instructions

OpenAI-compatible chat completion API

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": {
      "model": "<model>",
      "messages": "<messages>"
    },
    "name": "ollama_chat_completion"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelYesName of the Ollama model to use
timeoutNoTimeout in milliseconds (default: 60000)
messagesYesArray of messages in the conversation
temperatureNoSampling temperature (0-2)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.5/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden. "OpenAI-compatible" hints at OpenAI-shaped request and response semantics, which is useful, but nothing is said about streaming, statelessness, local execution, timeouts, errors, or whether this is a read-only, non-destructive operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single terse fragment with no wasted words and the key qualifier ("OpenAI-compatible") front-loaded, but it lacks sentence structure and is under-specified rather than economically complete.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description should explain the return shape (choices, message content, usage) but does not. For a chat inference tool with no annotations and four parameters, it is too thin to let an agent invoke it confidently.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all four parameters are documented in the schema itself; the description adds nothing beyond it. Baseline 3 applies when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The phrase "chat completion API" identifies the operation, but it essentially restates the tool name (ollama_chat_completion); the only added value is "OpenAI-compatible." It gives an agent no way to distinguish this from siblings like ollama_run or ollama_create.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this versus alternatives such as ollama_run, nor any mention of prerequisites (e.g., whether the model must be pulled first). The agent must infer usage from the name alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.