Skip to main content
Glama

wait_for_job

Read-only

Wait up to a specified timeout for a background job to finish and return its status; if it is still running, call again while the job continues.

Instructions

Wait up to timeoutSeconds for a background job to finish, then return it as get_job does. If it is still running, call again; the job keeps going either way.

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": {
      "jobId": "<jobId>"
    },
    "name": "wait_for_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobIdYesId returned by a tool called with background: true
timeoutSecondsNo

Output Schema

NameRequiredDescriptionDefault
okYesTrue only when DaVinci Resolve confirmed the operation.
dataNo
toolYes
errorNo
sourceNoWhere the result came from: the real DaVinci Resolve, the mock adapter (tests), or the server alone.
statusYes
messageYes
warningsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered. The description still adds real behavioral context beyond them: the wait is bounded, timing out does not cancel or alter the job ('the job keeps going either way'), and re-calling is the intended pattern. It omits only secondary details such as what state is returned on timeout and the 55-second ceiling.

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, no filler, with the core behavior and the timeout bound front-loaded before the retry advice. Every clause carries information an agent needs to call this correctly.

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 and the description deliberately defers to get_job for the return shape, which is the right division of labor. For a two-parameter polling tool it is nearly complete; the main gap is not surfacing the default 30s and hard cap of 55s, which an agent would otherwise have to read from the schema to plan retries.

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 50%: jobId is well documented as 'Id returned by a tool called with background: true', while timeoutSeconds carries only bounds and a default with no prose. The description adds meaning to timeoutSeconds by framing it as an upper bound on the wait, but does not mention the 30-second default or the 55-second maximum, so the schema still does most of the work.

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 action (wait up to timeoutSeconds for a background job to finish) plus the return contract ('return it as get_job does'). That return-contract clause explicitly separates it from the sibling get_job, which presumably returns immediately, so an agent can choose 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 actionable polling guidance: 'If it is still running, call again,' which tells the agent to loop rather than give up. The context for choosing this over a plain get_job is implied by 'wait up to timeoutSeconds' but never stated as an explicit either/or, so it falls short of 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