Skip to main content
Glama

capture_image

Capture a live camera frame as an MCP image result for AI visual inspection. Crop to a region, annotate defined areas, and avoid saving to disk by default.

Instructions

Use this any time you need to visually inspect the hardware. Captures a live frame directly as an MCP image result. Never saves to disk by default. Can crop to a defined region and annotate existing regions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
widthNoTarget image width (default 1024, max 3840)
cameraNoCamera ID (default: primary camera)
formatNoImage format (default jpeg)jpeg
regionNoOptional named region to crop to
annotateNoIf true, draws bounding boxes and labels for all defined regions

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/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 disclose meaningful behavior: the result is a live MCP image result, nothing is written to disk by default, and cropping/annotation of defined regions is possible. It omits permission requirements, latency/blocking behavior, and what happens when the requested camera or region does not exist.

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?

Four short sentences, zero filler, with the usage directive and the return type front-loaded. The final sentence about cropping/annotating is slightly compressed but still earns its place.

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 capture tool with no output schema and no annotations, the description covers the essentials an agent needs: what is produced, that it is not persisted, and that cropping/annotation are available. Missing error/failure semantics and sibling routing are the only real gaps.

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 100%, so width, camera, format, region, and annotate are already documented in the schema, making 3 the baseline. The description adds only light cross-context for 'region' and 'annotate' (tying annotation to previously defined regions) and says nothing about the other three parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource ('Captures a live frame directly as an MCP image result') plus the intent ('visually inspect the hardware'), which is clearly distinct from siblings like capture_sequence or read_text. It does not name or contrast any sibling explicitly, so it stops short of the top score.

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?

'Use this any time you need to visually inspect the hardware' is an explicit trigger condition, which is stronger than implied usage. However, no alternatives are offered: with siblings such as capture_sequence (multi-frame), read_text (text extraction), and measure present, the description never says when a different tool is the better choice.

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