Skip to main content
Glama

Delegate to local LLM

local_llm

Run instructions on local Ollama models over specified files to summarize logs, diffs, docs, or draft text without loading file contents into your context.

Instructions

Run an instruction on a LOCAL model (Ollama on this machine's GPU) over optional files, so their contents never enter your context. Use it to save tokens on bulk reading and first drafts: summarizing long CI logs, diffs, build output or docs, extracting the relevant lines from a big file, or drafting a report/changelog section from notes (write drafts with output_path). Do NOT use it for code edits, security or correctness decisions, or anything you'll state as fact without checking: the output comes from a much weaker model and is unverified. Spot-check it against the source before relying on it. Files must be under the server's allowed roots.

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": {
      "instruction": "<instruction>"
    },
    "name": "local_llm"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNogpt-oss:20b (default; best for long documents) or qwen3:14b (lighter; good for structured/JSON output)
pathsNoAbsolute paths of text files to include as input
overwriteNoAllow output_path to replace an existing file
instructionYesWhat to do, e.g. 'List every failing test and its error in one line each'
output_pathNoWrite the result to this .md or .txt file (not inside .git) and return only a short confirmation

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

With only readOnlyHint=false and openWorldHint=false supplied, the description carries real weight: it discloses the privacy guarantee (file contents stay out of context), that the backing model is 'much weaker' and output unverified, that files must be under the server's allowed roots, and that drafts should be written via output_path. These are behavioral facts not derivable from the annotations or schema.

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?

Front-loaded with the core mechanism and the token-saving rationale before the use-case list, then the exclusions. The single paragraph is dense and mostly earns its length, though the enumeration of example tasks and the spot-check reminder could be tightened slightly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Five parameters, no output schema, and thin annotations — so the description must cover constraints and return behavior, and it does: it explains that output_path yields only a short confirmation, warns that results are unverified, and states the filesystem root restriction. An agent has enough to call this correctly and interpret the result.

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 coverage is 100% and each parameter already has a description with model tradeoffs and an example instruction, so the schema does the heavy lifting. The description adds only marginal parameter meaning — the allowed-roots restriction on paths and the drafting intent for output_path — which is useful but not substantial beyond the schema.

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

Purpose5/5

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

The description gives a specific verb and resource ('Run an instruction on a LOCAL model (Ollama on this machine's GPU) over optional files') and names the key differentiator — file contents never enter the caller's context. That property alone distinguishes it from local_status and render_pdf.

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

Usage Guidelines5/5

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

It enumerates concrete use cases (summarizing long CI logs, diffs, build output, extracting relevant lines, drafting report/changelog sections) and explicit exclusions (no code edits, no security or correctness decisions, nothing stated as fact unchecked). The 'spot-check against the source' instruction further constrains reliance.

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

Deploy Server

Other Tools