Skip to main content
Glama

Background jobs

jobs
Destructive

Run long browser tasks in the background: start an audit, snapshot, or export, then get or wait for its progress and result without hitting request timeouts.

Instructions

Run a slow tool in the background and follow it: start, then wait or get.

For calls that can outlast a client's request timeout (Lighthouse audits, heap snapshots, screencast exports, long waits) or that you want to run while doing something else. Progress the tool reports is recorded on the job. Finished jobs are kept for an hour. Returns the affected jobs with their id, state, progress, and result once finished.

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": {
      "action": "<action>"
    },
    "name": "jobs"
  }
}

Input Schema

NameRequiredDescriptionDefault
toolNoFor 'start': the tool to run. Example: 'run_lighthouse'
actionYes'start' runs a tool in the background and returns its job id; 'get' reads a job; 'wait' blocks until it finishes or timeout; 'cancel' stops it; 'list' shows all. Example: 'start'
job_idNoFor get/wait/cancel: the id 'start' returned. Example: 'job_3f2a9c01de'
timeoutNoFor 'wait': seconds to block, at most 120. Example: 30
argumentsNoFor 'start': its arguments. Example: {"url": "https://example.com"}

Output Schema

NameRequiredDescriptionDefault
jobsYes
summaryYesOne line saying what happened.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already flag destructiveHint and openWorldHint, and the description adds real context beyond them: progress is recorded on the job, finished jobs are retained for an hour, and the response includes id, state, progress and result. It does not explain that destructiveHint derives from running arbitrary wrapped tools, but the operational lifecycle is well covered.

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?

Front-loads the core workflow in the first sentence, then layers usage conditions and lifecycle details. No sentence is filler, though the phrasing is slightly dense and could be broken with tighter clauses.

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

Completeness5/5

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

With annotations, full schema coverage and an output schema, the description supplies the missing pieces an agent needs: when to prefer async execution, the start-then-poll pattern, and job retention. Nothing essential to correct invocation is absent.

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 100% and each parameter already carries its own explanation, including the 120-second cap on timeout. The description adds only the workflow ordering (start, then wait or get), which is marginal beyond what the schema states.

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: run a tool asynchronously and follow it via start/wait/get. The asynchronous-job framing clearly separates it from synchronous invocation siblings, though no sibling is named explicitly.

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 concrete when-to-use criteria — calls that outlast a client request timeout (Lighthouse audits, heap snapshots, screencast exports, long waits) or that should run concurrently. It stops short of saying when not to use it, e.g. that short synchronous calls should go elsewhere.

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