Skip to main content
Glama
Unified MCP Server

Unified MCP Server

by qingyunyupan

ollama_run

Send a prompt to a named local Ollama model to generate a response, with an optional timeout to control how long the request waits.

Instructions

Run a model

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": {
      "name": "<name>",
      "prompt": "<prompt>"
    },
    "name": "ollama_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesName of the model
promptYesPrompt to send to the model
timeoutNoTimeout in milliseconds (default: 60000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden of behavioral disclosure, and it discloses essentially nothing. It does not state whether the model is pulled automatically, whether output streams, what happens on timeout, or what the response looks like. The only behavioral hint is implicit in the required 'prompt' parameter.

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

Conciseness2/5

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

Two words is not conciseness but under-specification; there is nothing to be front-loaded because no substantive information is present. The brevity leaves the definition unusable without the schema.

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?

For a three-parameter inference tool with no annotations and no output schema, the definition should at least explain the execution model and return behavior. The schema fully covers the parameters, which limits the damage, but the description provides no behavioral context an agent needs in order to call it correctly.

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%, with name, prompt, and timeout all documented in the schema (including the default of 60000 ms). The description adds no meaning beyond that, so the baseline of 3 applies.

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

Purpose2/5

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

"Run a model" essentially restates the tool name ollama_run and leaves the actual operation ambiguous: it does not say whether it loads a model into memory, executes inference against the supplied prompt, or something else. With siblings such as ollama_chat_completion, ollama_create and ollama_serve present, the agent cannot distinguish what this tool uniquely does.

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 tool versus ollama_chat_completion or ollama_serve, nor any stated prerequisites such as whether the model must already be pulled. The agent must infer usage entirely from the name and schema.

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