Skip to main content
Glama

Compare with a photo

compare
Idempotent

Render a saved build beside a reference photo from matching camera angles to check layout, proportions, and colors, then adjust the plan and rebuild.

Instructions

Render a saved build from a chosen camera next to a reference photo.

Use when the user gave a reference photo: set azimuth / elevation to match the photo's viewpoint, compare layout, proportions and colours, change the plan, build again. Returns one PNG with the photo on the left and the build on the right, also saved as <build>/renders/compare.png. Needs Blender. For a reference build file use study_reference.

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": {
      "name": "<name>",
      "reference": "<reference>"
    },
    "name": "compare"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe build's name, as given in its plan (see build)
azimuthNoCamera direction in degrees: 270 front, 225 front-left, 180 left, 315 front-right
elevationNoCamera height in degrees above the baseplate
referenceYesPath to the reference photo (PNG, JPG or WebP)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.1.1
    • addedInput schema / properties / azimuth / description
      Added value: +"Camera direction in degrees: 270 front, 225 front-left, 180 left, 315 front-right"
    • addedInput schema / properties / elevation / description
      Added value: +"Camera height in degrees above the baseplate"
    • addedInput schema / properties / elevation / maximum
      Added value: +90
    • addedInput schema / properties / elevation / minimum
      Added value: +0
    • addedInput schema / properties / name / description
      Added value: +"The build's name, as given in its plan (see build)"
    • addedInput schema / properties / reference / description
      Added value: +"Path to the reference photo (PNG, JPG or WebP)"
  2. First observedv0.1.0

TDQS

A4.7/5.0
Behavior4/5

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

Beyond the annotations it discloses the return shape (one PNG, photo left, build right), the side-effect path `<build>/renders/compare.png`, and the external dependency (Blender) — all consistent with readOnlyHint=false and idempotentHint=true. It stops short of saying whether re-running overwrites the existing file or how expensive/error-prone the Blender render is, which is the remaining behavioral gap.

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?

Opening sentence states the action, the second carries usage guidance and workflow, the third carries output and prerequisite facts. No filler sentences and nothing repeated from the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description compensates by describing the returned PNG and its saved location. It also covers the prerequisite (Blender) and the primary alternative tool, which is everything needed for a 4-parameter, non-destructive render call.

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 100%, so the baseline would be 3, but the description adds intent the schema lacks: azimuth/elevation exist to match the photo's viewpoint, and `reference` is a photo path used as the left-hand image. That explains why the parameters matter, not just their formats.

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?

"Render a saved build from a chosen camera next to a reference photo" names a specific verb (render), the resource (a saved build), and the distinguishing output (side-by-side with a photo). It explicitly routes the adjacent use case to `study_reference`, so an agent can separate it from `render` and `study_reference` without opening a schema.

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?

"Use when the user gave a reference photo" states the triggering condition outright, and "For a reference build file use `study_reference`" names the alternative plus the condition that selects it. It also sketches the iteration loop (set camera, compare, change plan, rebuild), leaving no inference needed.

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