Skip to main content
Glama

OpenRobotics

POST /v1/predict

predict

Predict what happens next with a world model (video from a prompt and/or frames, or future latents). Long-running: returns a queued job; poll it with get_job. Models: list_models with endpoint "predict", e.g. "nvidia/cosmos-predict-2.5". Billed per call unless the key is a sandbox key.

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": {
      "model": "<model>"
    },
    "name": "predict"
  }
}

Input Schema

NameRequiredDescriptionDefault
seedNo
imageNofirst frame to continue from (image-to-world); or an https:// URL of an image or video (fetched for you, up to 4 MB)
modelYesModel id from GET /v1/models, e.g. provider/name
widthNo
cameraNo
framesNoclip to continue, oldest first (video-to-world)
futureNolatent models: the observed continuation of `frames`, scored against the prediction (`surprise`)
heightNo
promptNowhat should happen; required by video models
statesNoaction-conditioned models: robot state per context frame (e.g. end-effector xyz, euler xyz, gripper)
actionsNoaction-conditioned models: the actions between the context frames, then one per step to predict
controlNo
drivingNo
controlsNoseveral control clips of different kinds, all the same length; metric-depth models take depth as 16-bit PNGs in millimetres
goal_imageNolatent models: a goal observation; rollouts get an `energy` per step, planners return a `plan` toward it; or an https:// URL of an image or video (fetched for you, up to 4 MB)
num_framesNoframes to generate (video) or to predict (latent); default and limits are per model
reference_framesNoaction-transfer models: a source clip, oldest first, whose motion (the latent action between each pair of consecutive frames) is replayed from `image`

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations only declare readOnlyHint=false and openWorldHint=true, and the description usefully adds that the call is asynchronous, returns a queued job, and is billed per call unless a sandbox key is used. It does not say what the queued job ultimately yields or whether any inputs are persisted, so meaningful gaps remain for a mutation-style, billed 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?

Four short sentences, front-loaded with the core purpose before operational details about polling and billing. Dense but every sentence carries information; only the model-id example feels slightly incidental.

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?

For a 17-parameter, multi-mode tool with no output schema, the description covers the async lifecycle and model selection but leaves the result shape and the interplay among modes (frames vs. future vs. goal_image) to the schema. Adequate, but not fully self-sufficient.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 65% with many richly documented parameters, so the schema does much of the work. The description still adds value by grouping inputs conceptually (prompt/frames vs. future latents) and giving a concrete model id convention, though it does not touch controls, driving, camera, or actions explicitly.

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 names a specific verb and resource ('predict what happens next with a world model') and enumerates its modes: video from prompt and/or frames, or future latents. It is clear what the tool produces, though it does not contrast itself against other generative siblings such as act or reconstruct.

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 gives concrete workflow guidance: results are long-running, so poll with get_job, and model ids come from list_models with endpoint "predict". What is missing is when to choose this tool over sibling endpoints for action-conditioned or reconstruction workloads, so usage is implied rather than fully routed.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources