Skip to main content
Glama

ollama_analyze_files

Analyze multiple files together with Ollama to uncover dependencies, check consistency, and summarize architecture across a codebase.

Instructions

Analyze multiple files together using Ollama. Useful for understanding relationships between files.

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_paths": "<file_paths>",
      "task": "<task>"
    },
    "name": "ollama_analyze_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskYesWhat analysis to perform (e.g., 'find dependencies', 'check consistency', 'summarize architecture')
modelNoOllama model to use (default: gemma3:27b)gemma3:12b
file_pathsYesArray of absolute paths to files to analyze together

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/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, yet it discloses almost nothing behavioral: no mention of whether files are read-only, latency or cost of a local model call, file count/size limits, or error handling. Only two thin sentences are provided for a multi-file LLM-backed operation.

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, front-loaded with the core action and no filler. It is efficient, though the second sentence is somewhat redundant with the first and the model-default claim should be removed or corrected.

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?

With no annotations, no output schema, and a batch LLM operation, the definition should cover cost/latency expectations, file-count or size constraints, and what the analysis returns. None of that is present, leaving an agent unable to predict the behavior or output shape.

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 coverage is 100%, so a baseline of 3 would apply, but the description actively introduces a conflict: the schema declares model default 'gemma3:12b' while the description says '(default: gemma3:27b)'. That misleading detail does not add meaning and could cause an agent to mis-specify the model.

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 ('Analyze multiple files together') and the multi-file scope distinguishes it from single-file siblings like ollama_explain_file or ollama_review_file. 'Analyze' itself is broad, so it is clear but not maximally precise.

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?

It says the tool is 'useful for understanding relationships between files', which implies the cross-file use case, but it never names an alternative tool or states an explicit when-not condition. Guidance is implied rather than stated.

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