Skip to main content
Glama

Get job

get_job
Read-only

Get a job: its status, its question (input_request), its result and any error.

  • Pass wait_seconds to wait until the job asks a question or finishes. If the wait ends first, call again. Each answer's next names the exact call to make next.

  • Each next suggests its wait_seconds: 30 seconds for a run, 30 to 50 seconds for a build, and 50 seconds for a repair or a long run. Waiting longer is fine. A caller whose server receives webhooks can create one with call_pomerado_api with operation "webhooks.create" to learn when a job asks a question or ends, instead of polling.

  • Each time a build's build.now.label changes, show the user its progress as a text bar: the position of build.stage in build.stages, then build.now.label, such as [######----] 3/5 Exploring the site.

  • Never ask for a password in chat. When a job needs a login, a code or an approval, give the user its input_request's answer_url and keep waiting here, with wait_past set to that request's id.

  • When a job asks any other question (input_request), follow its next: answer it yourself with answer_job if your task already settles it, otherwise ask your user and answer with theirs, or, when your user chose to answer on a form, give them its answer_url; then keep following the job with get_job. A browser_handoff question is never answered with answer_job: send your user its answer_url, where a person finishes the step in the job's live browser and marks it done, and keep following the job. Unanswered, a question expires after 10 minutes, a browser_handoff after 30 minutes; it fails a run and can pause or end a build.

  • Keep calling until a reply says the job has ended, and keep the connection open. A question expires 10 minutes after it is asked, a browser_handoff 30 minutes. A job you stop following can fail on it. Never start the same job again.

  • When a run's tool breaks, the run returns with maintenance.status repairing while Pomerado fixes the tool. Don't cancel it. Keep calling get_job, and keep the connection open, until the repair ends.

  • A result is handed out once; include_result false reads the job without using it up.

  • Status needs_input with error credentials_rejected means the website rejected the saved login. The job waits up to 60 minutes for the user to correct it on the page its next names, then resumes. Don't resubmit it.

  • A finished build names its tool as tool_id. Run it with run_website_tool, or run_read_only_website_tool when its effect is read.

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": {
      "job_id": "<job_id>"
    },
    "name": "get_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYesa job ID: job_ and 32 lowercase hex digits
wait_pastNoThe id of an input_request you already gave the user: the wait continues while it is pending and after it is answered, and returns when the job asks something new or finishes.
wait_secondsNoSeconds to wait for the job to ask a question or finish: up to 1800, or 50 when your client accepts only JSON. 0 or absent reads the job at once.
include_resultNofalse to read the job without its result, which stays for a later read; result_status says whether one waits. Default true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only say readOnly/openWorld=false; the description adds the behavior that actually matters — a result is handed out once, include_result=false does not consume it, questions expire in 10 minutes and browser_handoff in 30, credentials_rejected waits up to 60 minutes, and a stopped job can fail. It also warns never to restart the same job or resubmit after a credentials rejection.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Bullets are front-loaded and scannable, but there is real duplication: the 10-minute question / 30-minute browser_handoff expiry is stated twice, and 'keep the connection open' plus 'keep calling' recurs across three bullets. Ten bullets for a getter is heavy and some of the repetition could be merged without losing information.

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?

For a long-running async job tool with no output schema and a 4-parameter surface, the description covers everything an agent needs: status transitions, error codes, timeout windows, handoff mechanics, and the follow-up call after a build finishes (tool_id via run_website_tool). No material gap remains.

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%, so the baseline is 3, but the description earns more by explaining intent: wait_past keeps the wait alive across an already-delivered request id, include_result=false is a non-consuming read, and concrete wait_seconds values (30/30–50/50) are recommended per job type. Only job_id gets no added discussion.

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?

The opening sentence gives a specific verb and resource plus the exact payload returned: 'its status, its question (input_request), its result and any error'. Sibling tools (answer_job, cancel_job, run_website_tool) are named in context, so an agent can place this as the polling/observation tool rather than the acting one.

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

Usage Guidelines5/5

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

Explicit when-to-use rules abound: pass wait_seconds to block, call again if the wait ends first, use answer_job for ordinary questions but never for browser_handoff, keep calling during maintenance.status 'repairing' and don't cancel. It also names an alternative to polling entirely (webhooks.create via call_pomerado_api) with the condition that selects it.

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.