Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
JOBD_URLNohttp://127.0.0.1:8765
JOBD_API_TOKENNo

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Cross-session job queue.

Tool names below are written bare (jobd_list); your client lists each tool under its own prefix (e.g. mcp__jobd__jobd_list), so call it by that name.

WHEN TO USE THIS SERVER:

Heavy / long-running compute (use when user wants to launch work that should outlive the current session):

  • "run this overnight", "kick off training", "submit this job"

  • Any command expected to run >5 minutes or use significant CPU/GPU/memory

  • Anything the user wants babysat across sessions

GPU work (use when the work needs a specific GPU or arch):

  • Pass --gpu and --needs cuda, --needs cuda-8gb, --needs cuda-24gb

  • Routing matches against worker tags

Status / monitoring (use when user asks about prior jobs):

  • "is job N done?", "what jobs are running", "show me the logs from job M"

  • Tools: jobd_status, jobd_logs, jobd_list, jobd_workers

Job control (use when user wants to cancel, preempt, or inspect a specific job):

  • "cancel job N", "preempt job M", "show full info for job N"

  • Tools: jobd_cancel, jobd_preempt, jobd_status

NOT FOR:

  • Quick (<30s) commands that block the session naturally — just use Bash

  • Interactive workflows that need stdin (jobd is batch-only)

  • Cron-like scheduling (use the schedule skill instead)

Use submitted_via="mcp" (auto-set) so observability can distinguish MCP-driven submissions from CLI-driven.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
jobd_submitA

Submit a job to the jobd broker. Default async; pass wait=true to block up to wait_timeout_s (server clamps to 270).

jobd_statusA

The full JobInfo record for one job_id: state, exit_code, timings, host, and the scheduling internals — depends_on + cascade policy (depends_on_any_exit), pending cancel/preempt signal, resolved profile, requires (gpu/tags/idempotent), host pin, fast_path, timeouts, termination_reason. Use for a quick state check AND for debugging why a job routed/failed/stalled. Pass wait=true to block until terminal or wait_timeout_s.

jobd_logsA

Tail the captured stdout/stderr of a job (workers stream output to the broker's per-job log as it runs). Returns log_tail (last tail_bytes, default 8 KiB, max 1 MiB) plus size_bytes/returned_bytes/truncated — works for running AND finished jobs. Use to check progress mid-run, diagnose a failure's traceback, or grab a job's final output.

jobd_cancelA

Cancel a job (queued → cancelled; running → SIGTERM via worker signal poll, ~2s).

jobd_preemptA

Preempt a running/assigned preemptible job (worker SIGTERMs with grace; final state 'preempted'). Refused if not preemptible or not running.

jobd_listA

List jobs on the broker with per-state counts. Defaults to the active set (queued/assigned/running); filter by state (e.g. ['failed']), project, or a finished_at window (finished_after/finished_before) to find past runs. Each row is a compact summary: job_id, project, state, host, exit_code, queued_at, started_at, finished_at, duration_s — call jobd_status for a job's full record. Use to answer 'what is running / queued right now?', 'what failed overnight?', or to locate a job id you've lost.

jobd_eventsA

The broker's event stream — the surface that explains WHY, not just what. /jobs says a job is queued; only this says it has been skipped 400 times because no worker advertises cuda-32gb, or that its dependency was cancelled, or that a watchdog killed it. Filter by since (2h/3d/1w), event type, job_id, project, or source (broker|worker). Use when a job is not doing what you expect and jobd_status alone does not explain it.

jobd_workersA

Fleet snapshot: every registered worker with state (online/stale/offline), live capacity ad (free_vram_gb, unregistered_vram_gb, free_ram_gb, idle_cpus), capability tags (cuda tiers, arch/os), slot usage (running/max_concurrent), and last_heartbeat — plus an overall health rollup (healthy|degraded|empty). Use before submitting GPU work to see what's free, or to diagnose why a job isn't being dispatched.

jobd_worker_deleteA

Remove a worker from the broker registry. The broker refuses (409) if the worker is still online — caller stops the worker process or waits for the heartbeat sweeper first.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.9/5.0

Scored across 9 tools

Disambiguation4/5

Each tool has a clear resource+action target, and the descriptions explicitly route between near-neighbors (jobd_list is a compact summary vs jobd_status for the full record vs jobd_events for 'why'). The remaining overlap is small but real: jobd_status and jobd_events both claim to help debug stalled/failed jobs, and jobd_cancel vs jobd_preempt both stop a job, distinguishable only by the preemptible qualifier.

Naming Consistency4/5

All names use a uniform jobd_ prefix with snake_case and short, readable tokens. There is minor inconsistency in that some entries are verbs (submit, cancel, preempt, list) while others are bare nouns (status, logs, events, workers), and jobd_worker_delete uses a compound resource_action form unlike the rest.

Tool Count5/5

Nine tools is well within the sweet spot and each maps to a distinct part of the job lifecycle or fleet surface. No obvious filler or redundant wrapper tools.

Completeness4/5

Core job lifecycle (submit, inspect, list, logs, cancel, preempt) and worker observability are covered, but there are gaps: no job delete/purge for finished records, no retry/resubmit, no worker registration/drain (only delete), and profiles/requires are referenced in status output yet have no management tools.

Maintenance

ActivityNo data
ResponsivenessOutdated data