Skip to main content
Glama

ask_local_model

Delegate well-specified, boilerplate sub-tasks to a local Ollama model to save tokens and time, then review the result before accepting it.

Instructions

Delegate a sub-task to the local Ollama model running on this machine. Use for well-specified, boilerplate-ish work (scaffolding, repetitive edits, straightforward generation) to save tokens/time, then review the result yourself before accepting it.

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": {
      "prompt": "<prompt>"
    },
    "name": "ask_local_model"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoOllama model tag to use (default: qwen2.5-coder:7b-instruct).
promptYesThe task/instructions for the local model.
systemNoOptional system prompt to steer the local model.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries full burden; it does disclose key traits: the compute target is a local Ollama instance, the purpose is cost-saving, and results are untrusted and need review. It omits failure behavior (e.g., when the Ollama daemon or requested model tag is unavailable), latency characteristics, and the return shape.

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

Conciseness5/5

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

Two sentences, front-loaded with the action and target, followed by the selection criteria and a safety caveat. Nothing is redundant or padded.

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

Completeness4/5

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

For a simple three-parameter delegation tool with a fully documented schema and no output schema, this is nearly complete: what it does, when to use it, and the need to verify results are all covered. Only runtime failure modes and output format are left implicit.

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%, so all three parameters (model, prompt, system) are already documented, including the default model tag. The description adds no parameter-level semantics such as prompt-size limits or what changing the model implies, so the baseline of 3 applies.

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?

States a specific verb and resource: delegate a sub-task to the local Ollama model running on this machine. This is unmistakably distinct from the sibling list_local_models, which only enumerates models, so an agent can route correctly without opening either schema.

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

Usage Guidelines4/5

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

Gives a clear use case with concrete examples (scaffolding, repetitive edits, straightforward generation) and the motivation (save tokens/time), plus a workflow rule to review output before accepting. It stops short of explicit exclusions such as when a task is too open-ended or complex to delegate.

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