Skip to main content
Glama

Sats4AI - Bitcoin-Powered AI Tools

await_result

Read-onlyIdempotent

Wait for an async job to finish and return its result in ONE call — no manual polling loop. Pass the requestId + jobType from an async tool (generate_video, animate_image, generate_3d_model, transcribe_audio, epub_to_audiobook, ai_call). If your MCP client opened the request with 'Accept: text/event-stream', this streams live progress (notifications/progress) while it waits, then returns the final result; otherwise it does a single status check and returns immediately (call again until status='COMPLETED'). For long jobs it waits up to ~4 minutes per call, then returns status='IN_PROGRESS' with timed_out=true — call again with the same requestId to keep waiting. Equivalent to check_job_status + get_job_result combined. Free; no payment.

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": "await_result"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobTypeYesMust match the async tool that returned requestId.
paymentIdNoOptional: the paymentId that bought this job. If its payment was refunded, the claim link comes back only when this matches — or call check_payment_status(paymentId).
requestIdYesThe requestId returned by the async tool.

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
    • addedInput schema / properties / paymentId
      Added value: +{
      +  "description": "Optional: the paymentId that bought this job. If its payment was refunded, the claim link comes back only when this matches — or call check_payment_status(paymentId).",
      +  "type": "string"
      +}
  3. 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"
      +]
  4. 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"
      +]
  5. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and idempotentHint; the description adds substantial context beyond that: SSE clients get live notifications/progress, non-SSE clients get an immediate single check, and long jobs cap at ~4 minutes before returning status='IN_PROGRESS' with timed_out=true. The 'Free; no payment' note clarifies the cost/authorization model. It stops short of describing the result payload shape, which keeps it below a 5.

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-loaded with the core promise ('ONE call — no manual polling loop'), then branches into SSE vs non-SSE, timeout, and equivalence in a logical order. It is dense — the parenthetical list of six producing tools and the inline status values add length — but nearly every clause carries operational information rather than restating the name.

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 job-polling tool with no output schema, the description still tells the agent what comes back (final result, or status='IN_PROGRESS' plus timed_out=true) and what to do next (call again with the same requestId). Combined with the safety annotations, nothing needed to invoke or re-invoke it correctly is missing.

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 adds real meaning: it ties requestId to the async tool that returned it and names the concrete sibling tools, which helps because the jobType enum values ('video', 'video-image', 'ai-call') do not map one-to-one onto sibling tool names. It does not expand on the paymentId refund/claim-link nuance beyond what the schema already says.

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?

Opens with a specific verb+resource: 'Wait for an async job to finish and return its result in ONE call.' It distinguishes itself from manual polling and explicitly states it is 'Equivalent to check_job_status + get_job_result combined,' so an agent can place it against the two closest siblings without opening their schemas.

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?

Gives explicit prerequisites (requestId + jobType 'from an async tool') and names the producing tools (generate_video, animate_image, generate_3d_model, transcribe_audio, epub_to_audiobook, ai_call). It also spells out the fallback path: without SSE, do a single status check and call again until status='COMPLETED' — a clear alternative-behavior rule rather than implied usage.

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.