Skip to main content
Glama

ollama_general_task

Executes general coding tasks with local Ollama models for requests that don't fit specialized categories, using supplied context to generate, review, or analyze code.

Instructions

Execute any general coding task using Ollama. Use this for tasks that don't fit other categories.

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": {
      "task": "<task>"
    },
    "name": "ollama_general_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskYesDetailed description of the task to perform
modelNoOllama model to use (default: mistral-small)gemma3:12b
contextNoAny relevant context, code, or background information

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations exist, so the description carries the full burden, and it discloses very little. It says nothing about model-selection behavior, default model inconsistency, latency, permissions, or output format, only that it executes a task.

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

Conciseness4/5

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

The description is very short and front-loaded. It is efficient, though the brevity contributes to being underspecified rather than crisp.

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 broad fallback tool with 3 parameters, no annotations, and no output schema, a two-sentence description leaves too much unsaid: what output looks like, how the model and context parameters affect execution, and when not to use it.

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 baseline is 3. The description adds no meaning beyond the schema; notably it does not address the discrepancy between the described default (mistral-small) and the schema default (gemma3:12b).

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?

It states a specific action (execute a coding task) and resource (Ollama), but "any general coding task" is essentially the fallback bucket; the description does not define what counts as general versus the sibling categories (generate, fix, refactor, review).

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

Usage Guidelines3/5

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

There is implied usage guidance: use this when the task doesn't fit other categories. But no positive criteria are given, no examples of qualifying tasks, and no explicit alternatives are named.

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