Skip to main content
Glama

Get preview status

get_preview_status
Read-only

Poll a free preview. When succeeded, returns the preview image URL (valid 1h). No account needed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
preview_idYesPreview UUID returned by create_preview_job

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoMachine-readable error code (only present on failures)
job_idNoGeneration job UUID
statusNoJob state: queued | running | succeeded | failed
messageNoHuman-readable explanation of the failure
output_urlsNoPresigned result image URLs (present when succeeded)
error_messageNoFailure detail when status is failed
output_urls_expire_inNoSeconds until output_urls expire (3600)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / preview_id / description
      Added value: +"Preview UUID returned by create_preview_job"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "error": {
      +      "description": "Machine-readable error code (only present on failures)",
      +      "type": "string"
      +    },
      +    "error_message": {
      +      "description": "Failure detail when status is failed",
      +      "type": "string"
      +    },
      +    "job_id": {
      +      "description": "Generation job UUID",
      +      "type": "string"
      +    },
      +    "message": {
      +      "description": "Human-readable explanation of the failure",
      +      "type": "string"
      +    },
      +    "output_urls": {
      +      "description": "Presigned result image URLs (present when succeeded)",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "output_urls_expire_in": {
      +      "description": "Seconds until output_urls expire (3600)",
      +      "type": "integer"
      +    },
      +    "status": {
      +      "description": "Job state: queued | running | succeeded | failed",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the readOnlyHint annotation, it discloses that no account is needed and that the returned URL is valid for 1 hour. This adds practical context about rate limits/lifetime without contradicting annotations.

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?

Three short sentences, each providing unique value: purpose, success result, and access requirement. No redundancy, perfectly front-loaded.

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 simple poll tool with one parameter and an output schema, the description is complete. It mentions the success response, URL validity, and no-account requirement, covering all necessary usage context.

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

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with a detailed description for preview_id ('Preview UUID returned by create_preview_job'). The description adds no additional parameter semantics beyond what the schema already covers.

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 description clearly states the tool polls a preview and returns the preview image URL on success. The verb 'Poll' and resource 'preview' make it distinct from sibling tools like get_job_status, which is more generic.

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

Usage Guidelines4/5

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

It provides clear context for when to use: polling a preview until success. It does not explicitly exclude get_job_status or mention alternatives, but the 'free preview' scope makes the intended use obvious.

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.

Resources