Skip to main content
Glama

Prepare and render a product

keyshot_product_render
Destructive

Run a complete headless product render workflow: import or open a model, assign materials, set camera and environment, save the scene, and render one or all cameras.

Instructions

Run a complete product workflow in one headless process: open or import, assign materials, configure camera and environment, save a scene copy, and render one or all cameras.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
upNoOptional camera up direction [x, y, z]. Requires position and lookAt.
widthNoRender width in pixels. Overrides the selected quality preset when provided.
formatNoOutput image format. Defaults to PNG when omitted.
heightNoRender height in pixels. Overrides the selected quality preset when provided.
lookAtNoCamera target [x, y, z]. Must be provided together with position.
samplesNoMaximum render samples. Cannot be combined with maxTimeSeconds and overrides preset sampling when provided.
distanceNoPositive KeyShot camera distance applied after the transform or preset.
positionNoCamera position [x, y, z]. Must be provided together with lookAt.
rotationNoEnvironment rotation in degrees, from 0 inclusive to 360 exclusive.
modelPathNoAbsolute path to a model to import. Provide exactly one modelPath or scenePath.
outputDirNoAll-cameras output directory. Invalid with single mode; a safe directory is generated when omitted.
overwriteNoAllow replacement of explicitly selected output files. Defaults to false.
scenePathNoAbsolute path to an existing KeyShot scene. Provide exactly one scenePath or modelPath.
brightnessNoPositive brightness multiplier for the active environment.
cameraNameNoCamera to create, update, or activate. New model workflows default to Product Hero.
outputPathNoSingle-mode image destination. Invalid with allCameras mode; a safe name is generated when omitted.
renderModeNoRender one active or named camera, or discover and render every saved camera. Defaults to single.single
fieldOfViewNoCamera field of view in degrees, greater than 0 and less than 180. Cannot be combined with focalLength.
focalLengthNoCamera focal length from 5 to 200 mm. Cannot be combined with fieldOfView.
snapToGroundNoPlace imported geometry on the ground. Applies only to modelPath sources and defaults to true for new models.
baseScenePathNoOptional KeyShot base scene used only when modelPath is provided.
qualityPresetNoRender quality preset: preview (960x540, 16 samples), standard (1920x1080, 64 samples), or final (3840x2160, 256 samples).
centerGeometryNoCenter imported geometry. Applies only to modelPath sources and defaults to true for new models.
maxTimeSecondsNoMaximum render time in seconds. Selects time-based rendering and cannot be combined with samples.
continueOnErrorNoIn allCameras mode, continue after one camera fails. Defaults to true.
environmentNameNoEnvironment name from the KeyShot library. Cannot be combined with environmentPath.
environmentPathNoAbsolute path to a local KeyShot environment file. Cannot be combined with environmentName.
outputScenePathNoDestination for the prepared scene. A safe numbered name is generated when omitted.
cameraPresetNameNoConfigured camera preset to apply. Cannot be combined with a custom position/lookAt pair.
adjustEnvironmentNoAdjust the environment after model import. Applies only to modelPath sources and defaults to true for new models.
adjustCameraLookAtNoRetarget the camera after model import. Applies only to modelPath sources and defaults to true for new models.
materialAssignmentsNoObject-specific material changes applied before camera and environment setup.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYesTrue when the requested operation completed successfully.
dataYesOperation-specific structured result data, or null when unavailable.
errorYesHuman-readable failure reason, or null after success.
warningsYesNon-fatal conditions the user or agent should review.
errorCodeNoStable error category for common failures.
outputFilesYesAbsolute paths of images or scene files created by the operation.
suggestionsNoActionable recovery steps for the user or agent.
keyshotStdoutTailYesTruncated tail of KeyShot headless output for diagnostics.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed14 schema fields changedv0.13.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / height / maximum
      Added value: +9007199254740991
    • changedInput schema / properties / lookAt / items
      Previous value: -[
      -  {
      -    "$ref": "#/properties/position/items/0"
      -  },
      -  {
      -    "$ref": "#/properties/position/items/1"
      -  },
      -  {
      -    "$ref": "#/properties/position/items/2"
      -  }
      -]New value: +false
    • addedInput schema / properties / lookAt / prefixItems
      Added value: +[
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "number"
      +  }
      +]
    • removedInput schema / properties / materialAssignments / items / additionalProperties
      Removed value: -false
    • changedInput schema / properties / position / items
      Previous value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "number"
      -  }
      -]New value: +false
    • addedInput schema / properties / position / prefixItems
      Added value: +[
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "number"
      +  }
      +]
    • addedInput schema / properties / samples / maximum
      Added value: +9007199254740991
    • changedInput schema / properties / up / items
      Previous value: -[
      -  {
      -    "$ref": "#/properties/position/items/0"
      -  },
      -  {
      -    "$ref": "#/properties/position/items/1"
      -  },
      -  {
      -    "$ref": "#/properties/position/items/2"
      -  }
      -]New value: +false
    • addedInput schema / properties / up / prefixItems
      Added value: +[
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "number"
      +  }
      +]
    • addedInput schema / properties / width / maximum
      Added value: +9007199254740991
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / required
      Previous value: -[
      -  "ok",
      -  "outputFiles",
      -  "warnings",
      -  "keyshotStdoutTail",
      -  "error"
      -]New value: +[
      +  "ok",
      +  "data",
      +  "outputFiles",
      +  "warnings",
      +  "keyshotStdoutTail",
      +  "error"
      +]
  2. Addedv0.10.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations declare destructiveHint=true and idempotentHint=false, but the description never discloses the destructive side effects (overwriting output/scene files), the overwrite=false default behavior, or that this is a long-running headless render process. With zero annotation-adjacent context, the burden falls fully on the description, which omits the risk profile and runtime expectations.

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?

A single front-loaded sentence listing the workflow stages in order. It is efficient and does not pad, though the keyword-less phrasing gives the agent little to filter on when scanning tools.

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

Completeness3/5

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

For a 32-parameter destructive orchestration tool, the description is minimal. An output schema exists, so return values need not be explained, but the description omits the destructive behavior, the relationship to granular siblings, and the practical implication of overwrite/output path generation.

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 description coverage is 100%, so every one of the 32 parameters is already documented in the schema, including mutually exclusive constraints (scenePath/modelPath, samples/maxTimeSeconds, environmentName/environmentPath). The description adds only the high-level stage ordering, not per-parameter semantics, so it sits at the baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ('Run a complete product workflow... render one or all cameras') and enumerates the pipeline stages. However, it does not differentiate from siblings like keyshot_render, keyshot_import_model, or keyshot_apply_material, which it subsumes, leaving the agent unsure why to pick this orchestration tool over the granular ones.

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

Usage Guidelines2/5

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

No when-to-use or when-not-to-use guidance is given. The description does not mention that this bundles the workflow of the sibling tools, nor when a caller should prefer the single-purpose tools (import, material, camera, render) instead. The agent must infer selection purely from the name.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.