Skip to main content
Glama

job_assign

Idempotent

Assign or move a queued job to a specific host and set its queue position.

Instructions

Set (or move) a queued job's host and queue order.

Input Schema

NameRequiredDescriptionDefault
job_idYesJob id from job_enqueue/job_list, e.g. 'j-1a2b3c4d'
host_idYesHost id from list_hosts, e.g. 'build-pc'
positionNoQueue order (ascending); omit to keep the current

Output Schema

NameRequiredDescriptionDefault
idYes
kindYes
linksNo
phaseNo
titleYes
eventsNo
originNoWho asked for this run (human | agent | driver | eval | probe | warmup) — scopes the learning loopagent
paramsNoIntake: purpose, expected, caps, flags, pending_shot, ...
statusYes
targetYes
workerNo
host_idNoNULL = not yet assigned (host_choice='ask')
summaryNoPresent once the job is closed out
web_urlNoAbsolute URL of this job's page in the web UI
positionNo
artifactsNo
created_atYes
project_idNo
started_atNo
updated_atYes
crash_countNocrash-level events (the queue board flags these)
error_countNoerror-level events (the queue board flags these)
finished_atNo
current_stepNoThe step awaiting a verdict (newest prompt event + whether it is answered)
requested_byNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare idempotentHint=true, destructiveHint=false and readOnlyHint=false, so the safety profile is covered. The description contributes the useful behavioral nuance that an existing assignment can be *moved*, but says nothing about what happens if the job is already running or what the prior host assignment becomes.

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?

A single twelve-word sentence with the operation front-loaded and no filler. It is efficient bordering on terse; nothing is wasted, though the brevity pushes remaining burden onto the caller.

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?

With an output schema, full annotation coverage and complete parameter docs, the description is serviceable but thin. It omits preconditions (job must be queued, host must be claimed) and does not mention that setting position reorders surrounding jobs, which matters for a scheduling tool.

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 100% and each parameter carries an example-bearing description, so the baseline is already met. The description adds a bit more by tying 'queue order' to the otherwise thin position parameter and framing assignment as movable.

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 concrete verb-and-resource pair: 'Set (or move) a queued job's host and queue order.' The 'queued' scoping separates it from job_start/job_cancel and the 'move' wording signals reassignment rather than creation. It stops short of naming a sibling to contrast with, so a 4 rather than a 5.

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

Usage Guidelines2/5

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

The description gives no when-to-use, when-not, or alternative routing at all; the only hint is the adjective 'queued.' Nothing tells the agent to prefer job_enqueue for new work or claim_host for host-side reservation, leaving differentiation to inference from the name alone.

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