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, srt, vtt } (a result too large for one reply comes back without segments, srt and vtt, with resultTruncated, omitted and fullResultUrl: a free link to the whole result); 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.

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": {
      "requestId": "<requestId>",
      "jobType": "<jobType>"
    },
    "name": "get_job_result"
  }
}

Input 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 / jobType / enum
      Previous value: -[
      -  "video",
      -  "video-image",
      -  "video-fal-standard",
      -  "video-fal-pro",
      -  "image-3d",
      -  "transcription",
      -  "transcribe-translate",
      -  "translate-epub",
      -  "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",
      +  "web-task"
      +]
  2. 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)."
  3. 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."
  4. 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"
      +}
  5. 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"
      +]
  6. 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"
      +]
  7. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint; the description adds substantial behavior beyond that: per-jobType return shapes, truncation behavior for large transcriptions with fullResultUrl, the ~1 hour URL expiry, the RESULT_NOT_AVAILABLE refund scenarios and how paymentId changes the outcome. Some detail duplicates schema/env details (refund claim path) and the description is dense, but overall the disclosure is exceptional. Could note the annotation-safe read nature isn't contradicted.

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?

Front-loaded with the key precondition, but the body is a long dense run-on covering every jobType shape plus refund edge cases; the epub-audiobook parenthetical and refund-claim instructions bloat it. Useful content, but could be restructured into a list.

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

Completeness4/5

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

No output schema exists, so the per-jobType return shapes are necessary and largely provided; the ~1 hour expiry and truncated-result handling fill the biggest gaps. Minor omissions: no mention of what error shapes look like generally, but error_code values are covered for key cases.

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 baseline is 3; description adds value by mapping jobType values to their output shapes (video→videoUrl, image-3d→modelUrl GLB, transcription→text/segments/srt/vtt, epub-audiobook→url/annexeUrl) and by explaining the paymentId effect on refunded jobs. It doesn't specify requestId handling beyond what the schema says, hence not a 5.

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?

States a specific verb+resource ('Retrieve the final output of a completed async job') and explicitly distinguishes it from check_job_status (must be COMPLETED first) and synchronous tools (not for those).

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 preconditions: only after check_job_status returns COMPLETED, calling early errors; explicit exclusion of synchronous tools; explicit alternative for status polling (sibling) and payment status check. Also names the paymentId escape hatch for refunded jobs.

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.