Skip to main content
Glama

photo_to_scene

Turn a still photo and its depth map into a textured, depth-displaced 3D parallax scene for Blender, ready for camera moves and fly-through renders.

Instructions

Turn a still photo + depth map (from the estimate_depth tool) into a parallax scene: a subdivided plane textured with the photo, vertices pulled toward the camera by depth. Add camera_move/camera_orbit for a cinematic fly-through, or use the photo_flythrough host tool which does everything including QA.

grid: mesh resolution across the width (160-240 is plenty; vertex count grows quadratically). depth_scale: max displacement toward the camera, relative to plane_height (0.3 subtle, 0.5 strong parallax; higher starts to tear geometry at depth edges). plane_height: world height of the photo in metres (camera distance derives from it and lens). margin: plane enlargement factor beyond the frame (1.1 covers gentle moves, 2.0+ covers aggressive push/pan; the extra band MIRROR-folds the photo's edge content so it reads naturally instead of streaking). lens: mm, 50 = natural. The result includes camera_envelope: the safe camera-movement limits for this scene (prevention layer; see README). Keep poses inside it and the margin fold never enters the central frame.

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": {
      "image_path": "<image_path>",
      "depth_path": "<depth_path>"
    },
    "name": "photo_to_scene"
  }
}

Input Schema

NameRequiredDescriptionDefault
gridNo
lensNo
nameNoPhoto
marginNo
depth_pathYes
image_pathYes
depth_scaleNo
plane_heightNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does disclose real behavior: the geometry construction, the MIRROR-fold edge behavior of margin, degradation of depth_scale at high values ("starts to tear geometry at depth edges"), and that the result includes a camera_envelope prevention layer. It stops short of stating the side effects on the current scene (whether a new object is added, selected, or named by the `name` parameter) and points at a README for the envelope semantics.

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-loads the purpose and the alternatives before moving to per-parameter guidance in a compact block; nearly every clause carries decision-relevant information. The parenthetical asides make it dense and slightly harder to scan, but there is no filler.

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 an 8-parameter, side-effect-heavy scene-construction tool with no output schema, the description covers construction mechanics, parameter tuning, and the key return field (camera_envelope). The main residual gap is what object is created and how `name` applies, plus deferring the envelope's meaning to an external README.

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 description coverage is 0%, so the description must compensate and mostly does: grid (range 160-240, quadratic vertex growth), depth_scale (0.3/0.5 guidance plus failure mode), plane_height (metres, camera distance derives from it), margin (1.1 vs 2.0+ for aggressive moves), and lens (50 = natural). Only `name` is left unexplained, and image_path/depth_path are self-evident.

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?

Opens with a specific verb and resource: "Turn a still photo + depth map ... into a parallax scene," then concretely describes the mechanism (subdivided plane textured with the photo, vertices pulled toward the camera by depth). This clearly distinguishes it from estimate_depth (which produces the depth map) and photo_flythrough (which wraps the whole workflow).

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

Usage Guidelines5/5

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

Explicitly routes the agent: pair with camera_move/camera_orbit for a fly-through, or use photo_flythrough "which does everything including QA," and it names estimate_depth as the source of the required depth map. It also gives an operating constraint ("Keep poses inside it and the margin fold never enters the central frame"), so the when-to-use and when-to-delegate cases are both covered.

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