Skip to main content
Glama

compare_view

Read-only

Compare a 3D model with a reference image to check if it matches in size, shape, and orientation. Returns IoU metrics, overlay visuals, and adjustment hints.

Instructions

Compare the model with a reference image in one flat view: the main metric of a build from references. The reference is placed in the world: its bottom on the model bottom, horizontal centres equal. Scale: height_m is the real size of the subject along the VERTICAL of the (turned) picture, width_m along its horizontal; give one, and a model that is too big or too small is caught. With none the reference is fitted to the model height and only the outline shape is compared. iou_outline is always that shape-only match. Views (the model front faces -Y, Z up) and the picture each expects. front: +X to the right. back: -X to the right. right (side is the same): camera on +X, the front points LEFT. left: the front points right. top: +X to the right, the front at the BOTTOM. bottom: the front at the top. flip ('x' left-right, 'y' top-bottom) and rotate (degrees clockwise; flip first) turn the reference for this call. names is the model (empty: everything visible but a huge floor or backdrop, listed in excluded). Returns iou_registered, both sizes, a table per band along the vertical (widths, delta, shift, verdict; worst first) and inner_detail: edge_agreement 0..1 between the reference inner edges and the creases and depth steps of the model (the IoU does not see slots and holes inside the outline). Under IoU 0.3 a hint says if a mirrored or turned reference fits far better. The image: reference, model, overlay (red reference outline, green model outline, yellow and blue inner edges), difference; out also saves it. colors=N adds the match of N colour classes of the reference. For a perspective photo use match_camera and overlay_reference.

Input Schema

NameRequiredDescriptionDefault
outNo
flipNo
sizeNo
viewNofront
bandsNo
namesNo
colorsNo
rotateNo
width_mNo
height_mNo
referenceYes
thresholdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already mark it readOnly/non-destructive, and the description goes well beyond them: it enumerates return values (iou_registered, both sizes, per-band table with verdicts, inner_detail edge_agreement), explains the sub-0.3 IoU hint, the empty-`names` behavior listing a huge floor/backdrop in `excluded`, and that `out` writes the composite image. That is rich behavioral disclosure the annotations cannot carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Nearly every sentence carries non-redundant information, but it is delivered as one dense run-on paragraph with no headers or bullets, forcing the agent to parse view-by-view orientation details mixed with return-value notes. Appropriately sized for a 12-parameter tool, but poorly structured for front-loaded scanning.

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 complex 12-parameter tool with no output schema, the description covers the interaction model, scale semantics, view conventions, output payload, and side effects of `out`, which is close to sufficient. Gaps remain on size, bands, and threshold semantics.

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?

With 0% schema description coverage the description must do the work, and it explains view (with per-view axis orientation), flip/rotate ordering, height_m vs width_m semantics, names, colors, and out in real detail. It leaves size, bands, and threshold unexplained, so it compensates for most but not all of the 12 parameters.

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+resource+scope: comparing a model against a reference image in a single flat orthographic view, and calls out that it produces the main build-from-references metric. It also separates itself from neighbors, explicitly routing perspective photos to match_camera and overlay_reference, so an agent can distinguish it from fit_to_reference/overlay_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 Guidelines4/5

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

Gives a clear alternative route ('For a perspective photo use match_camera and overlay_reference') and conditions for the scale parameters (give height_m/width_m to catch a size mismatch, omit both to compare shape-only). It lacks an explicit when-not-to-use statement or a direct comparison to the closer sibling fit_to_reference.

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