Skip to main content
Glama

Sats4AI - Bitcoin-Powered AI Tools

get_job_result

Read-onlyIdempotent

Retrieve the final output of a completed async job. Call ONLY after check_job_status returns status='COMPLETED' — calling on a job that has not completed returns an error. Returns JSON whose shape depends on jobType: video/video-image → { videoUrl, duration }; image-3d → { modelUrl } (GLB format); transcription → { text, language, segments }; epub-audiobook → { url, annexeUrl, totalChapters, completedChapters } (annexeUrl is a companion PDF of equations, tables, addresses, keys and hashes the narration replaces with a spoken marker; null when the book had none); ai-call → { transcript, duration, summary }. A video or 3D job whose payment was refunded returns error_code RESULT_NOT_AVAILABLE, unless you pass its paymentId: the payer then gets the pending refund (error_code L402_REFUND_ISSUED). An audiobook whose payment was refunded also returns RESULT_NOT_AVAILABLE, with no link: claim the refund at /recover with the payment ID. A web 3D purchase not yet collected on its own page also returns RESULT_NOT_AVAILABLE. All URLs are temporary (valid ~1 hour) — download immediately. This tool is free and does not require payment. Do NOT use for synchronous tools — those return results directly.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
jobTypeYesMust match the async tool: video=generate_video, video-image=animate_image, image-3d=generate_3d_model, transcription=transcribe_audio, epub-audiobook=epub_to_audiobook, ai-call=ai_call. video-fal-standard/video-fal-pro = the fallback jobType generate_video returns when the primary video model is at capacity.
paymentIdNoThe paymentId that bought this job. On a failed or refunded job the refund is opened either way; the claim link (lnurl_withdraw / refund_secret) is returned only when this matches — or call check_payment_status(paymentId).
requestIdYesThe requestId returned by the original async tool — same ID used with check_job_status

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / paymentId / description
      Previous value: -"The paymentId that bought this job. On a failed job the refund is opened either way; the claim link (lnurl_withdraw / refund_secret) is returned only when this matches — or call check_payment_status(paymentId)."New value: +"The paymentId that bought this job. On a failed or refunded job the refund is opened either way; the claim link (lnurl_withdraw / refund_secret) is returned only when this matches — or call check_payment_status(paymentId)."
  2. Changed1 schema field changed
    • changedInput schema / properties / jobType / description
      Previous value: -"Must match the async tool: video=generate_video, video-image=animate_image, image-3d=generate_3d_model, transcription=transcribe_audio, epub-audiobook=epub_to_audiobook, ai-call=ai_call. video-fal-standard/video-fal-pro = the FAL fallback jobType generate_video returns when Replicate is at capacity."New value: +"Must match the async tool: video=generate_video, video-image=animate_image, image-3d=generate_3d_model, transcription=transcribe_audio, epub-audiobook=epub_to_audiobook, ai-call=ai_call. video-fal-standard/video-fal-pro = the fallback jobType generate_video returns when the primary video model is at capacity."
  3. Changed1 schema field changed
    • addedInput schema / properties / paymentId
      Added value: +{
      +  "description": "The paymentId that bought this job. On a failed job the refund is opened either way; the claim link (lnurl_withdraw / refund_secret) is returned only when this matches — or call check_payment_status(paymentId).",
      +  "type": "string"
      +}
  4. Changed1 schema field changed
    • changedInput schema / properties / jobType / enum
      Previous value: -[
      -  "video",
      -  "video-image",
      -  "video-fal-standard",
      -  "video-fal-pro",
      -  "image-3d",
      -  "transcription",
      -  "transcribe-translate",
      -  "epub-audiobook",
      -  "ai-call"
      -]New value: +[
      +  "video",
      +  "video-image",
      +  "video-fal-standard",
      +  "video-fal-pro",
      +  "image-3d",
      +  "transcription",
      +  "transcribe-translate",
      +  "translate-epub",
      +  "epub-audiobook",
      +  "ai-call"
      +]
  5. Changed1 schema field changed
    • changedInput schema / properties / jobType / enum
      Previous value: -[
      -  "video",
      -  "video-image",
      -  "video-fal-standard",
      -  "video-fal-pro",
      -  "image-3d",
      -  "transcription",
      -  "epub-audiobook",
      -  "ai-call"
      -]New value: +[
      +  "video",
      +  "video-image",
      +  "video-fal-standard",
      +  "video-fal-pro",
      +  "image-3d",
      +  "transcription",
      +  "transcribe-translate",
      +  "epub-audiobook",
      +  "ai-call"
      +]
  6. First observed

TDQS

A5/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and idempotentHint; the description adds substantial behavior beyond them: the error_code RESULT_NOT_AVAILABLE path, the L402_REFUND_ISSUED refund flow via paymentId, the audiobook refund recovery at /recover, the uncollected web-3D-purchase case, the ~1 hour URL expiry with 'download immediately', and the fact that the tool is free. This is exactly the extra context annotations cannot carry.

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

Conciseness5/5

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

It is front-loaded with the core action and precondition before the enumeration, and every sentence carries actionable content — return shapes, error codes, refund routing, and URL expiry. The length is driven by the real number of jobType/refund branches rather than padding.

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?

There is no output schema, so the description must carry return-value semantics, and it does so per jobType with concrete field names. Combined with the refund/error branches and expiry warning, nothing an agent needs to call and interpret this tool is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/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 goes further: it maps each jobType value to a concrete return shape and explains the conditional role of paymentId in refund handling (payer gets the pending refund only when it matches). That adds genuine call-shaping meaning beyond the schema text.

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 first sentence states a specific verb and resource: 'Retrieve the final output of a completed async job.' It distinguishes itself from the sibling check_job_status by referencing the completion precondition, and the closing sentence excludes synchronous tools. An agent can tell exactly what this tool returns versus its neighbors.

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?

It gives an explicit precondition ('Call ONLY after check_job_status returns status=COMPLETED') with the consequence of violating it (returns an error), and an explicit exclusion ('Do NOT use for synchronous tools'). The alternative check_job_status is named, so the when-to-use branch is fully determined.

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.