Skip to main content
Glama

Apply a KeyShot material

keyshot_apply_material
Destructive

Apply a KeyShot library material or local material file to a specific object, then save the edited scene.

Instructions

Apply a KeyShot library material or local material file to a specific object, then save the edited scene.

Input Schema

NameRequiredDescriptionDefault
overwriteNoAllow replacing an existing output file. Defaults to false. Input files can never be replaced, even when true.
scenePathYesAbsolute path to an existing KeyShot scene file to open. Input files may be outside the configured output directory.
objectNameNoScene object name to modify. Provide either objectName or the more specific objectPath.
objectPathNoFull scene-tree path of the object to modify. Use this instead of objectName when names are duplicated.
materialNameNoMaterial name from the local KeyShot library. Provide either materialName or materialPath.
materialPathNoAbsolute path to a native single-material KeyShot MTL file, not a Wavefront OBJ companion MTL. Provide either materialPath or materialName.
outputScenePathYesDestination path for a saved scene copy, never an input file. Existing files are rejected unless overwrite=true. Must stay inside KEYSHOT_OUTPUT_DIR unless external outputs are explicitly enabled.

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. Changed2 schema fields changedv0.13.5
    • changedInput schema / properties / outputScenePath / description
      Previous value: -"Destination path for the saved KeyShot scene. The path must stay inside KEYSHOT_OUTPUT_DIR unless external outputs are explicitly enabled."New value: +"Destination path for a saved scene copy, never an input file. Existing files are rejected unless overwrite=true. Must stay inside KEYSHOT_OUTPUT_DIR unless external outputs are explicitly enabled."
    • addedInput schema / properties / overwrite
      Added value: +{
      +  "description": "Allow replacing an existing output file. Defaults to false. Input files can never be replaced, even when true.",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changedv0.13.1
    • changedInput schema / properties / materialPath / description
      Previous value: -"Absolute path to a local KeyShot material file. Provide either materialPath or materialName."New value: +"Absolute path to a native single-material KeyShot MTL file, not a Wavefront OBJ companion MTL. Provide either materialPath or materialName."
  3. Changed4 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
    • 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"
      +]
  4. Changed7 schema fields changedv0.10.0
    • addedInput schema / properties / materialName / description
      Added value: +"Material name from the local KeyShot library. Provide either materialName or materialPath."
    • addedInput schema / properties / materialPath / description
      Added value: +"Absolute path to a local KeyShot material file. Provide either materialPath or materialName."
    • addedInput schema / properties / objectName / description
      Added value: +"Scene object name to modify. Provide either objectName or the more specific objectPath."
    • addedInput schema / properties / objectPath / description
      Added value: +"Full scene-tree path of the object to modify. Use this instead of objectName when names are duplicated."
    • addedInput schema / properties / outputScenePath / description
      Added value: +"Destination path for the saved KeyShot scene. The path must stay inside KEYSHOT_OUTPUT_DIR unless external outputs are explicitly enabled."
    • addedInput schema / properties / scenePath / description
      Added value: +"Absolute path to an existing KeyShot scene file to open. Input files may be outside the configured output directory."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "data": {
      +      "anyOf": [
      +        {},
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Operation-specific structured result data, or null when unavailable."
      +    },
      +    "error": {
      +      "description": "Human-readable failure reason, or null after success.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "errorCode": {
      +      "description": "Stable error category for common failures.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "keyshotStdoutTail": {
      +      "description": "Truncated tail of KeyShot headless output for diagnostics.",
      +      "type": "string"
      +    },
      +    "ok": {
      +      "description": "True when the requested operation completed successfully.",
      +      "type": "boolean"
      +    },
      +    "outputFiles": {
      +      "description": "Absolute paths of images or scene files created by the operation.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "suggestions": {
      +      "description": "Actionable recovery steps for the user or agent.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "warnings": {
      +      "description": "Non-fatal conditions the user or agent should review.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "ok",
      +    "outputFiles",
      +    "warnings",
      +    "keyshotStdoutTail",
      +    "error"
      +  ],
      +  "type": "object"
      +}
  5. First observedv0.2.1

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=false; the description adds the key behavioral fact that the call does not just mutate but also writes a saved scene, which explains the destructive flag. It stops short of saying whether the input scene file is left untouched (the schema says so, the description does not) or how overwrite conflicts are surfaced.

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 sentence that front-loads the action, names both material sources, identifies the target, and closes with the write side effect. No filler and nothing an agent must read past to find the core behavior.

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 100% schema coverage and an output schema, the description only needs to carry the action and side effect, which it does. The remaining gap is routing: for a tool sitting next to keyshot_apply_material_preset, an agent gets no help choosing between them.

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 either/or pairings (materialName vs materialPath, objectName vs objectPath) and the overwrite semantics are already fully documented in the schema. The description only says a material may come from a library or a local file, which restates rather than extends the schema.

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 and resource ("Apply a KeyShot library material or local material file to a specific object") plus the resulting side effect ("then save the edited scene"). It distinguishes library/local-file materials from presets implicitly, but never names keyshot_apply_material_preset, so the differentiation from that closest sibling is left to inference.

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, and keyshot_apply_material_preset (the obvious alternative for preset-based material application) is never mentioned. The only usage signal is the implicit framing that this operates on an existing scene file and an existing object.

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