Skip to main content
Glama

photo_flythrough

Generate a cinematic 2.5D fly-through video from a single photo, with camera-path clamping and probe-frame QA to avoid seams, edge exposure, smears, and blank frames.

Instructions

One-call photo -> cinematic 2.5D fly-through with built-in QA. Two layers of protection: (1) PREVENTION - the safe camera envelope of the scene is computed from the depth budget and geometry, and every move in moves (same shape as the camera_move tool: to_location [x,y,z] in metres, optional from_location, to_rotation_deg [tilt, pan, roll] in degrees, start_frame/end_frame, easing) is clamped into it before rendering, so the margin fold and scene edge stay out of frame by construction; the envelope is returned so you can plan inside it. (2) SELF-CHECK - probe frames along the path are rendered and analyzed for seams, edge exposure, smears and blank frames; failing poses are pulled back and re-probed up to max_adjust_rounds. The mp4 is rendered only when probes are clean (unless render_anyway), then spot-checked from the encoded file. depth_path: reuse an estimate_depth result; empty = estimate here. shake: e.g. {"strength": 0.012, "speed": 3} for a gentle handheld float. Returns {video, clean, envelope, clamps, attempts, unresolved, mp4_spot_check}.

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>",
      "moves": "<moves>"
    },
    "name": "photo_flythrough"
  }
}

Input Schema

NameRequiredDescriptionDefault
fpsNo
outNoflythrough.mp4
gridNo
lensNo
movesYes
shakeNo
widthNo
heightNo
marginNo
samplesNo
frame_endNo
depth_pathNo
image_pathYes
depth_scaleNo
frame_startNo
probe_scaleNo
plane_heightNo
probe_framesNo
render_anywayNo
max_adjust_roundsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so thoroughly: it explains the camera envelope clamping, that the envelope is returned, the probe-based self-check with pull-back and re-probing up to max_adjust_rounds, that rendering is gated on clean probes unless render_anyway, and a post-encode spot check. It even names each returned field.

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?

The paragraph is front-loaded with the core promise and the two protection layers, and every sentence carries information. It is dense and heavy for a single paragraph, with inline code fragments that make scanning harder, but there is little wasted wording.

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 20-parameter mutation tool with no annotations and no output schema, the description covers the control flow, failure handling, and an explicit return shape. The remaining gap is the meaning of the numerous numeric quality knobs, which an agent would have to guess at.

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 coverage is 0% across 20 parameters, so the description must compensate, and it does for the most important ones: the full moves item shape (to_location, from_location, to_rotation_deg, start_frame/end_frame, easing), depth_path semantics, the shake example, render_anyway and max_adjust_rounds behavior. Many knobs remain unexplained, including grid, lens, samples, margin, plane_height, depth_scale, probe_scale and probe_frames.

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 specific verb and pipeline: photo -> cinematic 2.5D fly-through with built-in QA, and explicitly frames it as a one-call composite that wraps the same move format as camera_move. An agent can tell this apart from the lower-level camera_move and estimate_depth siblings.

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?

Guidance is clear for the main decision points: use it as the single-call path, pass depth_path to reuse an estimate_depth result or leave empty to estimate inline, and set render_anyway when you want output despite dirty probes. It never explicitly says when to prefer camera_move or photo_path_check instead, so the exclusion side is left implicit.

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