Skip to main content
Glama

photo_path_check

Checks a photo-based scene camera path for safe framing by projecting fold lines into each frame with exact Blender matrices and flagging poses that reveal mirrored content or holes.

Instructions

EXACT camera-path safety check for a photo_to_scene build: projects the photo's edge lines (where the mirror-fold margin begins) into the camera view at the given frames using Blender's own matrices - no frustum approximations. For each frame reports where each fold line falls in the frame (0-1, None if out of frame) and whether the pose is safe: a fold inside the seam_window (default [0.08, 0.9], i.e. anywhere except a sliver at the very frame edge) would show mirrored / doubled content, and a view past any margin-extended plane edge OR CORNER shows a hole. Calibrated on rendered ground truth: a fold 18% in from the edge over detailed content (trees) read as an obvious mirrored blob, so near-edge folds are only tolerated in the outer 8% of the frame. Check move endpoint frames after planning a path; tighten poses that come back unsafe, then confirm with validate_frames probe renders.

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": {
      "camera": "<camera>",
      "frames": "<frames>",
      "photo_half_size": "<photo_half_size>"
    },
    "name": "photo_path_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
cameraYes
framesYes
marginNo
seam_windowNo
photo_half_sizeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/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 burden and does substantial work: it explains what is reported per frame (fold line position as 0-1, None when out of frame), what makes a pose unsafe (fold inside seam_window showing mirrored/doubled content; view past a margin-extended plane edge or corner showing a hole), and the calibration rationale behind the 8% default. It stops short of stating that it does not mutate the scene, its performance cost, or failure behavior for invalid cameras.

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 operation, then output semantics, then the calibration rationale and the follow-up step — a sensible order. It is dense and leans on capitalized emphasis ("EXACT", "OR CORNER") for priority, and the calibration anecdote about trees could be trimmed, but nearly every clause carries decision-relevant information.

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?

No output schema exists, and the description covers the return shape (per-frame fold positions plus a safe/unsafe verdict) well enough to use results. For a tool this specialized the remaining gaps — photo_half_size semantics, camera prerequisites, and read-only nature — are real but narrow.

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 0%, so the description must compensate for five parameters, and it only partly does. seam_window is explained well (default [0.08, 0.9], near-edge folds tolerated only in the outer 8%), frames and margin are implied, but camera and especially photo_half_size (format, units, expected two-value shape) receive no meaning at all.

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-resource pair: an exact camera-path safety check that projects a photo's edge/fold lines into the camera view at given frames. It explicitly contrasts itself with approximations ("no frustum approximations") and with the render-based sibling ("confirm with validate_frames probe renders"), so an agent can distinguish it from photo_to_scene and validate_frames without reading schemas.

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 a concrete workflow position: run it on move endpoint frames after planning a path, tighten unsafe poses, then confirm with validate_frames probe renders. That names the alternative and the sequencing, though it does not state when this check can be skipped (e.g., static or non-photo cameras).

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