Skip to main content
Glama

Prepare and render a product

keyshot_product_render
Destructive

Automate a KeyShot product render workflow in one headless run: import a model or scene, assign materials, set camera and environment, save a scene copy, 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

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

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. Changed1 schema field changedv0.13.1
    • changedInput schema / properties / materialAssignments / items / properties / materialPath / description
      Previous value: -"Absolute path to a local KeyShot material file. Choose one material source."New value: +"Absolute path to a native single-material KeyShot MTL file, not a Wavefront OBJ companion MTL. Choose one material source."
  2. 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"
      +]
  3. Addedv0.10.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false, and openWorldHint=false, lowering the bar. The description adds that the run is headless and that a scene copy is saved, but it does not disclose what the destructive behavior actually overwrites despite the 'overwrite' option – a notable gap for a mutation tool.

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?

A single front-loaded sentence that enumerates the workflow stages in order and wastes nothing. Given the complexity of 32 parameters, this is admirably tight.

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?

An output schema exists, so return values need not be explained, and the schema fully covers the 32 parameters. The description adequately conveys the workflow scope, though it could say more about when this tool supersedes the granular siblings.

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 the schema already documents all 32 parameters, including enums and cross-parameter constraints. The description adds no parameter-level detail, so the baseline 3 applies.

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?

The description names a specific composite verb set (open/import, assign materials, configure camera and environment, save, render) and the resource (a product workflow). It clearly positions itself as the one-shot orchestrator versus the granular siblings, though it never explicitly states that contrast.

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

Usage Guidelines3/5

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

The phrase 'in one headless process' implies batch/automated usage and contrasts implicitly with calling the individual sibling tools, but there is no explicit when-to-use / when-not-to-use guidance or named alternative. Usage is only inferable.

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