Skip to main content
Glama

Create render preview

create_render

Create a private preview from one product photo. Supply exactly one upload_id, image_url or image_base64. Upload larger local photos with authenticated POST /api/uploads (multipart image), then pass its id. Inline images: at most 3129344 decoded bytes. URL/upload photos: up to 4 MiB. Reuse idempotency_key after a timeout. Poll get_render, inspect hasSheet, then approve pending_credits before render_3d.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create_render"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
promptNo
image_urlNoPublic HTTPS JPEG, PNG or WebP URL; up to 4 MiB
is_publicNo
upload_idNoOwner-scoped id from authenticated POST /api/uploads; expires after one hour
content_typeNo
image_base64NoCanonical base64, at most 3129344 decoded bytes; requires content_type
idempotency_keyNo

Output Schema

NameRequiredDescriptionDefault
idYes
nameYes
errorYes
linksYes
promptYes
sourceYes
statusYes
creditsYes
hasModelYes
hasSheetYes
isPublicYes
createdAtYes
sheetNoteYes
canUpscaleYes
hasPreviewYes
modelVersionYes
sheetCreditsYes
renderCreditsYes
upscaleCreditsYes
pending_creditsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / links / required
      Previous value: -[
      -  "page",
      -  "preview",
      -  "model_glb"
      -]New value: +[
      +  "preview",
      +  "model_glb"
      +]
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations cover the safety profile (non-read-only, non-destructive, open-world), and the description adds real behavior the annotations do not: the preview is private, limits differ between inline base64 (3,129,344 decoded bytes) and URL/upload (4 MiB), and a credit approval step gates render_3d. It still omits cost amount per render and whether previews expire, which matters for a credit-consuming mutation.

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?

Purpose is front-loaded in the first clause, and nearly every sentence carries a constraint or next step rather than filler. It is telegraphic to the point of being terse ("Poll get_render, inspect hasSheet, then..."), which packs a workflow into one line but risks being skimmed past.

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?

With an output schema present and 0 required parameters, the description supplies what the schema cannot: the mutually exclusive image-source rule and the downstream credit/workflow state. The gap is that it never reconciles "private preview" with the is_public flag, and it doesn't note that the exactly-one-source rule is enforced despite no required fields.

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 only 38% across 8 parameters, so the description must compensate, and it does for the critical ones: exactly one of upload_id/image_url/image_base64, the upload expiry path, and reuse of idempotency_key after a timeout. It says nothing about name, prompt, or is_public, leaving three parameters with no meaning beyond their bare schema types.

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?

"Create a private preview from one product photo" names a specific verb (create), a specific artifact (preview), and its scope (private, single photo), which separates it from render_3d and create_product_views without opening those schemas. The 'one product photo' constraint also implies the input cardinality up front.

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 lays out an explicit sequence: obtain an upload_id via POST /api/uploads for large local files, then poll get_render, check hasSheet, and approve pending_credits before render_3d. That routes the agent forward and tells it when the follow-up tools apply, though it never states when to prefer a sibling such as create_product_views over this preview path.

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