Skip to main content
Glama

omlx_run

Run prompts on a local oMLX model without web or tools; long-running calls return a job ID for later result retrieval, with context reuse and battery guard.

Instructions

Run a prompt on the local oMLX model (no tools, no web access).

Waits up to wait_seconds (max 50). If not finished, returns status="running" and a job_id; fetch it later with omlx_result. thinking=false (default) asks the chat template to skip the reasoning phase. context is placed before the prompt so repeated calls over the same material reuse oMLX's prefix cache. Refuses on battery power unless allow_on_battery=true.

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": "omlx_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNo
promptYes
contextNo
thinkingNo
max_tokensNo
temperatureNo
wait_secondsNo
system_promptNo
allow_on_batteryNo
include_reasoningNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full load, and it discloses the important traits: blocking wait capped at 50 seconds, the status="running" + job_id fallback path, the thinking=false default meaning, prefix-cache reuse via context, and a hard refusal on battery power. It does not explain how the model is chosen when `model` is null, nor how sampling parameters interact, leaving some behavior opaque.

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 action and scope, then broken into short lines each covering one behavioral fact. Almost every sentence earns its place; the parenthetical about the chat template is slightly wordy but still informative.

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?

An output schema exists, so return structure needn't be spelled out, yet the description still explains the key async outcome (status running + job_id). For a 10-parameter, unannotated mutation-ish tool the coverage of the unusual parameters is good; the gaps are mostly conventional sampling knobs.

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 0% across 10 parameters, so the description must compensate. It does add real meaning for wait_seconds (max 50), thinking, context (ordering/prefix-cache effect) and allow_on_battery, but is silent on model, max_tokens, temperature, system_prompt and include_reasoning — five parameters left entirely undocumented.

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 — run a prompt on the local oMLX model — and immediately bounds scope with '(no tools, no web access)'. The async follow-up is routed by name ('fetch it later with omlx_result'), so an agent can tell this apart from omlx_result/omlx_status without opening a 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 clear operating context: call this to run a prompt, and if it returns status="running" use omlx_result to collect the job. Also states the battery constraint as a precondition. It stops short of an explicit when-not-to-use or guidance on choosing between other siblings, so it is not a 5.

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