Skip to main content
Glama

ollama_review_file

Review a file by absolute path with an Ollama model, focusing on code quality, security, or bugs while the MCP server reads it directly to reduce token usage.

Instructions

Review a file by path using Ollama. The MCP server reads the file directly, reducing token usage.

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": {
      "file_path": "<file_path>"
    },
    "name": "ollama_review_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
focusNoWhat to focus on (e.g., 'performance', 'security', 'best practices', 'bugs')general code quality
modelNoOllama model to use (default: gemma3:27b)gemma3:12b
file_pathYesAbsolute path to the file to review

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose one meaningful behavior — the server reads the file itself and consumes fewer tokens — which is real value beyond the schema. It omits the read-only nature, the requirement for a running Ollama instance/model availability, latency, and what the review output looks like.

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?

Two short sentences with no filler, and the core action plus the token-saving rationale are front-loaded. Nothing is redundant, though the brevity leaves important behavior unstated.

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 tool with no annotations and no output schema, the description should explain what a "review" returns (findings, severity, format) and any operational prerequisites like a reachable Ollama server. It provides none of that, and compounds the gap with the model-default mismatch against the schema.

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

Parameters2/5

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

Schema description coverage is 100%, so the schema already documents all three parameters and the baseline would be 3. However the description asserts "default: gemma3:27b" for model while the schema declares default "gemma3:12b" — a direct conflict that can mislead an agent about which model will actually run.

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?

"Review a file by path using Ollama" states a specific verb (review) and resource (a file at a path), and the phrase "reads the file directly" distinguishes it from siblings such as ollama_review_code that presumably take inline code. It stops short of naming an alternative explicitly, so the differentiation is inferable rather than stated.

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 no explicit when-to-use / when-not-to-use guidance or named alternative among the ten sibling tools. The clause "reducing token usage" implicitly recommends this tool for files on disk where you want to avoid pulling content into context, but the agent must infer that.

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