Skip to main content
Glama

View image

view_image
Read-onlyIdempotent

Inspect an image at a controlled size with a pixel-coordinate grid, zoom into regions, and overlay saved annotations to verify object locations before labeling.

Instructions

Look at an image: returns the picture itself, scaled to at most max_size pixels, with a yellow grid labelled in the ORIGINAL image's pixel coordinates.

Use it before segment_objects or add_annotations to read where objects are (boxes and points are in those coordinates), and with with_annotations=true afterwards to check the outlines. region zooms into part of a large image (x, y, width, height in image pixels), e.g. to see individual nuclei.

Input Schema

NameRequiredDescriptionDefault
gridNoDraw the yellow coordinate grid, labelled in original image pixels.
regionNoZoom into this part of the image (x, y, width, height in original image pixels); omit for the whole image.
image_idYesId of an image in Image Label: the imageId (a UUID string) returned by list_images or an upload.
max_sizeNoLongest side of the returned picture, in pixels.
with_annotationsNoDraw the image's saved annotations on the picture, to check them.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.8.1
    • addedInput schema / properties / grid / description
      Added value: +"Draw the yellow coordinate grid, labelled in original image pixels."
    • addedInput schema / properties / image_id / description
      Added value: +"Id of an image in Image Label: the imageId (a UUID string) returned by list_images or an upload."
    • addedInput schema / properties / max_size / description
      Added value: +"Longest side of the returned picture, in pixels."
    • addedInput schema / properties / region / description
      Added value: +"Zoom into this part of the image (x, y, width, height in original image pixels); omit for the whole image."
    • addedInput schema / properties / with_annotations / description
      Added value: +"Draw the image's saved annotations on the picture, to check them."
  2. Addedv0.8.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description adds genuinely non-obvious behavior: the image is downscaled to at most max_size, the grid labels use the original image's pixel coordinates rather than the scaled ones, and region performs a zoom. That coordinate-frame disclosure is exactly the kind of detail an agent cannot infer from structured fields and would otherwise misread when consuming boxes or points.

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?

Three tight sentences: what it returns and in what coordinate frame first, then when to call it, then the zoom case. Every clause carries information an agent needs to place the call in a workflow; 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?

With no output schema, the description correctly carries the burden of describing the return value (the rendered picture plus grid) and the coordinate convention. It leaves minor gaps — e.g., the image_id source is only in the schema, and behavior when annotations exist but with_annotations is false is unstated — but nothing essential to correct invocation is missing.

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 goes further by explaining the purpose of region ("zooms into part of a large image ... to see individual nuclei") and tying grid and max_size to their rendered effect. It adds intent-level meaning beyond the per-field schema text without restating it.

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?

The description states a concrete verb and resource ("Look at an image: returns the picture itself") and specifies the exact artifact returned — a scaled picture with a yellow grid labelled in the ORIGINAL image's pixel coordinates. This implicitly separates it from get_image, which by name suggests metadata/id retrieval rather than a rendered view, and the coordinate-frame detail tells an agent precisely what it will see.

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?

Explicit workflow routing: "Use it before segment_objects or add_annotations" and "with with_annotations=true afterwards to check the outlines," plus the condition for region ("e.g. to see individual nuclei"). It lacks an explicit when-not statement or a named alternative such as get_image for metadata-only needs, which keeps it from a 5.

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