Skip to main content
Glama

See what is in an image

get_detections
Read-only

What the detection engine sees in an image: item names, categories, textures, colors, and bounding boxes (0-1000 normalized), plus a scene narrative. Free. Use it to 'see' an image's contents, or to pick item names for restyle. Each item has an id (fixed per scan_id) and a label telling repeats apart ("person (left)"); restyle remove takes items [{id}] to remove just that one. 404 = never scanned; run scan_image first.

Input Schema

NameRequiredDescriptionDefault
target_idYesGeneration or asset id.
target_typeNoDefault generation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Adds real context beyond readOnlyHint=true: the call is free, item ids are stable per scan_id, labels disambiguate repeats ("person (left)"), and an unscanned target returns 404. These are behavioral facts an agent cannot get from the annotations or schema. Return format is described at a high level only, but that is sufficient for a read tool.

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?

Dense and front-loaded: the payload is described first, then usage, then id behavior, then the error case. Every clause carries information, though the parenthetical details make it slightly longer than strictly necessary.

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 must carry the return-value burden, and it does: it enumerates the fields returned, the 0-1000 normalization, the scene narrative, and the id/label structure. Prerequisites and the 404 case are also covered, so an agent has everything needed to call and interpret it.

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 100%, so both target_id and target_type are already documented by the schema and the enum is self-describing. The description's mentions of scan_id refer mainly to output item ids rather than input parameter semantics, so it adds little beyond the baseline.

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 (get the detection engine's view of an image) and enumerates the exact payload: item names, categories, textures, colors, normalized bounding boxes, and a scene narrative. It is clearly distinguishable from siblings like scan_image (which produces the data) and cutout/get_cutout (which transform it).

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?

Gives explicit use cases ("see" an image's contents, or pick item names for restyle) and names the downstream alternative that consumes the output (restyle remove takes items [{id}]). It also states the prerequisite/fallback: 404 means never scanned, so run scan_image first.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources