PRS job status
prs_job_statusCheck the status of a running PRS scoring or download job by job ID, optionally waiting for completion, and retrieve the result when finished.
Instructions
Poll a long scoring/download job started by this server.
compute_prs_by_trait, compute_prs_batch, normalize_vcf, and
download_sample_genome return a PRSJob instead of blocking. Call
this with that job_id. wait_seconds=25 waits inside one call
(safe for Cursor) and returns as soon as the job finishes. When
status is done, read html_link and result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | ||
| wait_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | Tool that created the job. | |
| error | No | Failure message when status is failed. | |
| job_id | Yes | Pass this to prs_job_status until status is done or failed. | |
| result | No | When status is done: the original tool payload (TraitPRSReports, NormalizeResult, OpResult, or a list of PRSResult). Read html_link / result_paths from this object. | |
| status | Yes | queued/running: call prs_job_status. done: read result and html_link. failed: read error. Do not start a second identical compute while queued/running. | |
| message | Yes | Latest progress line. | |
| progress | No | Completed work units, when known. | |
| html_link | No | PRIMARY REPORT DELIVERY TARGET. When set, put this exact value in the user reply as a markdown link and explicitly tell the user to open the interactive report. It is an HTTP URL when available and a file:// URI for local stdio. Never omit, fetch, or paste the HTML. | |
| poll_with | No | Poll this tool with job_id. Optional wait_seconds keeps one poll under typical client timeouts (try 25). | prs_job_status |
| created_at | Yes | UTC timestamp when the job was created. | |
| html_error | No | Optional HTML-generation error. Scores remain valid when this is set. | |
| progress_total | No | Total work units, when known. |