Skip to main content
Glama

Apply a preset

preset_apply
DestructiveIdempotent

Apply a curated preset as a new revision (compiles to validated scene operations). Material presets create the material (tint via color, assign via applyToObjects); lighting presets add a complete light rig + world; camera presets frame and activate a camera; render presets set the render profile. LIGHTING AND CAMERA PRESETS ARE AUTHORED FOR A 2 m SUBJECT — lights 4-7 m out at 800-1500 W, cameras 4-6 m back. On a small product that is not merely suboptimal, it is a white frame: a 42 mm subject wants roughly 1/50 the distance and 1/2500 the wattage. Pass subjectSizeM and the whole rig is rescaled for you.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "projectId": "<projectId>",
      "preset": "<preset>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "preset_apply"
  }
}

Input Schema

NameRequiredDescriptionDefault
colorNo
presetYes
projectIdYesStable project ID returned by project_create or projects_list.
materialNameNo
subjectSizeMNoLargest dimension of the subject in METRES (watch 0.042, mug 0.12, chair 1.0, car 4.5). Rescales lighting and camera presets from their 2 m reference: distances linearly, light energy by the square. Ignored by material and render presets. Omit it and the raw 2 m rig is applied unchanged.
applyToObjectsNo
baseRevisionIdNo"HEAD" (default) targets the project's current head. Mutations MUST build on the head: passing an older revision is rejected with REVISION_CONFLICT, since history is linear. To continue from an older scene, revision_restore it forward first.HEAD
idempotencyKeyYesStable caller-chosen key for safe retries of this same request.
generatePreviewNoRender the revision thumbnail (maximum side 384px), using the active camera or scene-bounds fallback. Lit transmission uses low-sample Cycles; other lit scenes use EEVEE. Pass false when another preview is unnecessary; scene_snapshot then inherits the nearest ancestor thumbnail and says so.

Output Schema

NameRequiredDescriptionDefault
jobYes
operationCountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / color / items
      Added value: +{
      +  "maximum": 1,
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / color / maxItems
      Added value: +3
    • addedInput schema / properties / color / minItems
      Added value: +3
    • removedInput schema / properties / color / prefixItems
      Removed value: -[
      -  {
      -    "maximum": 1,
      -    "minimum": 0,
      -    "type": "number"
      -  },
      -  {
      -    "maximum": 1,
      -    "minimum": 0,
      -    "type": "number"
      -  },
      -  {
      -    "maximum": 1,
      -    "minimum": 0,
      -    "type": "number"
      -  }
      -]
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare the mutation profile (readOnly=false, destructive=true, idempotent=true), so the description's job is to add what they can't. It does: presets compile to validated scene operations and land as a new revision, lighting/camera rigs carry a 2 m reference scale, and material/render presets ignore subjectSizeM. It omits that a stale baseRevisionId is rejected with REVISION_CONFLICT, leaving that to the schema.

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?

Front-loaded with the core behavior before the scale warning, and the per-family breakdown is efficient. The uppercase emphasis and the framing anecdote ('a white frame', '42 mm subject wants roughly 1/50 the distance') are vivid but slightly longer than strictly needed.

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?

For a 9-parameter mutation with an output schema, the description covers the distinctive risks (scale mismatch, preview behavior, revision semantics) well. The notable gap is that the preset parameter has no enum and the description never says where valid preset identifiers come from, leaving the agent to guess or probe.

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 56%, so the description needs to compensate and largely does: it explains that color is a tint for material presets and applyToObjects is the assignment target. The concrete rescaling rule (distances linear, energy squared) and the subjectSizeM examples add real meaning, though baseRevisionId, idempotencyKey and generatePreview are left entirely to the schema.

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?

States a concrete verb and resource (apply a curated preset as a new revision), and then disambiguates the four preset families (material, lighting, camera, render) by what each produces. An agent knows exactly what this does and how it differs from a generic scene operation apply.

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?

Gives clear conditional guidance for subjectSizeM ('pass subjectSizeM and the whole rig is rescaled', 'omit it and the raw 2 m rig is applied unchanged') and explains the failure mode of not passing it. It does not explicitly route between this and a sibling like scene_apply, so it stops short of naming alternatives.

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