Skip to main content
Glama

preview

Read-onlyIdempotent

Render the photo with its live filters applied and return it as a JPEG so you can look at it. It is fast (about a third of a second at 1024 px). Previews are most of the bytes a session returns: prefer get_histogram for a numeric check (did the tone move?) and use this for spatial questions. region renders a full-resolution crop instead of the whole-photo proxy, which is exact for spatial filters rather than approximate.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "image": "<image>"
    },
    "name": "preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
imageYesImage id, as returned by open_photo.
max_pxNoLong-edge cap for the proxy render, in pixels.
regionNoA rectangle in document pixels: {x, y, width, height}. Must lie entirely within the image — a region partly or fully outside it is refused rather than silently clamped. When given, renders a full-resolution crop of just that region (exact for spatial filters, unlike the default whole-image proxy).

Output Schema

NameRequiredDescriptionDefault
proxyNo
widthNo
heightNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the readOnly, idempotent, non-destructive, and openWorld annotations, the description discloses speed (~a third of a second at 1024 px), byte cost ('previews are most of the bytes a session returns'), and the exactness tradeoff of region versus whole-image proxy. It does not discuss auth or error behavior, but the annotations carry much of the safety profile.

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?

The purpose is front-loaded and most sentences earn their place by adding performance, cost, and usage context. There is minor redundancy around region exactness that the schema already explains.

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?

Given an output schema, full parameter coverage, and rich annotations, the description supplies the key practical context: output format, speed, byte cost, alternative tool, and region behavior. It is largely complete for an agent deciding how and when to call 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 description coverage is 100%, so the baseline is 3. The description reinforces region semantics and exactness, but that meaning is already present in the schema, and it adds no extra detail for image or max_px.

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 specific verb and resource: 'Render the photo with its live filters applied and return it as a JPEG so you can look at it.' It also distinguishes the tool from get_histogram for numeric checks and from region-based full-resolution crops.

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?

It gives explicit routing guidance: prefer get_histogram for a numeric check such as whether tone moved, and use this preview for spatial questions. It also explains that region renders a full-resolution crop instead of the whole-photo proxy, which is an actionable alternative within the same tool.

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