Skip to main content
Glama

Preview one frame

preview_frame
Read-onlyIdempotent

Capture one composed frame at a known timecode in seconds. Zero is valid. To check fine detail (small text, a logo, thin lines, edges), pass region to draw only that part of the frame, at a higher resolution; longEdge sets the image size. Do not loop over this to imitate a contact sheet; use preview_range.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
regionYesThe part of the frame to draw, as [x0, y0, x1, y1]: its top left and bottom right corners as fractions of the frame from the frame's top left (0 to 1, at least 0.02 apart). Example: [0.5, 0, 1, 0.5] is the top right quarter. The scene draws only this region, at the image's full size and a higher resolution, so small text, logos, thin lines and edges show real detail instead of an enlarged frame. The image has the region's shape. null (or leaving it out) draws the whole frame.
longEdgeYesPixels on the long side of the image, 240 to 1536. The scene draws at this size. null (or leaving it out) gives 480 for the whole frame and 1024 for a region.
timecodeYes
projectIdYesThe project this call runs on without changing the open project. null (or leaving it out) uses the open project. wait_for_jobs takes the projectId of the calls that started the jobs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds real behavioral context beyond them: that zero is a valid timecode, that region renders at a higher resolution rather than upscaling the frame, and that the output image takes the region's shape. It stops short of describing pagination or the concrete return format.

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 short sentences, each carrying distinct load: what it captures, how to get detail, and the anti-pattern to avoid. The task and its constraint are front-loaded with 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?

For a four-required-parameter tool with no output schema, the description covers purpose, the undocumented timecode param, region/longEdge interaction and the sibling alternative. Only a brief note on the returned image format/type is absent, which is a minor gap rather than a blocking one.

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 75% and notably the required `timecode` parameter has no schema description at all; the description compensates by defining its unit and edge case ('in seconds. Zero is valid.'). It also adds the rationale and interaction for region/longEdge (why to pass region, that it raises effective resolution) beyond what the schema states, going past the baseline 3.

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 and resource ('Capture one composed frame'), scopes it to 'a known timecode in seconds', and explicitly distinguishes itself from the two sibling preview tools by naming preview_range as the contact-sheet alternative. An agent can route correctly without opening another 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?

Gives positive guidance (pass region to inspect small text, logos, thin lines, edges; longEdge sets size) and an explicit negative exclusion ('Do not loop over this to imitate a contact sheet; use preview_range'). This is exactly the when/when-not/alternative structure the dimension asks for.

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.