Skip to main content
Glama

neurocode_repair_ollama

Repair bugs by sending a context-sliced prompt to a local Ollama model, then optionally apply the generated patch to the repository.

Instructions

Perform single-turn bug repair by sending a knapsack-sliced prompt to a local Ollama model instance.

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": {
      "issue": "<issue>"
    },
    "name": "neurocode_repair_ollama"
  }
}

Input Schema

NameRequiredDescriptionDefault
applyNoWhether to write the patch to disk
issueYesBug description or traceback
modelNoOllama model name (e.g. 'qwen2.5-coder:14b', 'qwen2.5-coder:7b')qwen2.5-coder:7b
repo_pathNoPath to repository root.
ollama_urlNoOllama server URLhttp://localhost:11434

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.3.0
    • addedInput schema / properties / repo_path / default
      Added value: +"."
    • changedInput schema / required
      Previous value: -[
      -  "repo_path",
      -  "issue"
      -]New value: +[
      +  "issue"
      +]
  2. First observed

TDQS

C2.9/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 of behavioral disclosure. It mentions local Ollama and a knapsack-sliced prompt, but does not disclose that the tool can write patches to disk when apply=true, nor does it describe side effects, model requirements, or failure behavior.

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 a single front-loaded sentence with no wasted wording. However, 'knapsack-sliced prompt' is jargon that may not help an agent understand the operation without additional context.

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?

This is a moderately complex repair tool that can write to disk and depends on a local model server, yet the description omits key operational context such as output form, apply behavior, prerequisites, and limitations. The schema covers parameters, but the description is incomplete for an agent deciding whether and how to invoke 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 the input schema already documents all five parameters including apply, model, repo_path, and ollama_url. The description adds no parameter-specific meaning beyond the schema; baseline 3 is appropriate.

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

Purpose4/5

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

The description states a specific verb and resource: 'Perform single-turn bug repair' by sending a prompt to a local Ollama model. This is clear enough for an agent to understand the core action, but it does not differentiate from siblings such as neurocode_validate_patch or explain how this repair step relates to them.

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?

The phrase 'single-turn bug repair' implies a use case but gives no explicit when-to-use or when-not-to-use guidance. It does not mention prerequisites such as a running Ollama server, alternatives like validating a patch first, or how this differs from other neurocode tools.

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