Skip to main content
Glama

omlx_result

Retrieve a job's result and optionally wait up to 50 seconds for it to finish, so you can poll asynchronous oMLX prompt jobs and collect their output.

Instructions

Get a job's result, waiting up to wait_seconds (max 50) if it is still running.

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": {
      "job_id": "<job_id>"
    },
    "name": "omlx_result"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYes
wait_secondsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the burden well by disclosing that the call blocks until the job finishes or the wait expires, and that wait_seconds has a hard cap of 50 that the schema does not encode. It omits the outcome when the wait expires or when the job fails, which is a real gap for a blocking call.

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?

A single sentence with no waste: the action leads, the blocking condition and its cap follow. Nothing is repeated from the schema except the parameter name, which is necessary for the constraint to make sense.

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

Completeness3/5

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

The tool is simple and has an output schema, so return values need no explanation. However, for a blocking retrieval tool with no annotations, the definition should say whether fetching is idempotent/non-destructive and what happens on timeout — both left unstated.

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%, so the description must compensate. It usefully explains wait_seconds as a wait bound with a max of 50, but adds nothing about job_id beyond its name, leaving half the parameters undocumented.

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?

States a specific verb and resource ('Get a job's result'), which is distinguishable from the sibling omlx_status by focusing on the result rather than state. It doesn't explicitly name the alternatives, so it stops short of 5.

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?

The phrase 'waiting up to wait_seconds ... if it is still running' implies the intended context: call this when you want the payload and are willing to block. It never says when to prefer omlx_status polling or omlx_cancel instead, nor what to do on timeout.

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