Skip to main content
Glama

Zoom in on a photo

zoom_in
Destructive

Cuts a frame of the given shape out of one of the user's photos and upscales it to a full photo, paid from their credits. x, y and w are the frame's left edge, top edge and width as fractions of the photo (0 to 1); left out, the largest frame is centred. Pass the price the user agreed to as max_credits: the photo's prices from get_shoot or list_photos name it. If a call to this tool got no answer, it may already have started: check list_photos before calling it again.

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": {
      "photo_id": "<photo_id>",
      "ratio": "<ratio>",
      "max_credits": "<max_credits>"
    },
    "name": "zoom_in"
  }
}

Input Schema

NameRequiredDescriptionDefault
wNo
xNo
yNo
againNotrue only when the user, having seen what this same call made, asks for another (a second re-roll of one photo, another take of one shoot). Without it, the same call repeated within 10 minutes answers with what it made and charges nothing: a request already answered is not a new one.
ratioYes
photo_idYes
max_creditsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / again
      Added value: +{
      +  "description": "true only when the user, having seen what this same call made, asks for another (a second re-roll of one photo, another take of one shoot). Without it, the same call repeated within 10 minutes answers with what it made and charges nothing: a request already answered is not a new one.",
      +  "type": "boolean"
      +}
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Beyond the annotations, the description discloses that the operation costs the user credits, that it must be authorized with an agreed price, and that a repeat within 10 minutes returns the prior result and charges nothing unless 'again' is set — important behavioral context that the annotations alone do not convey. It does not explain what the destructiveHint=true actually destroys (the original photo? prior edits?), leaving the most consequential annotation unelaborated.

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 definition is front-loaded with the action and cost, then geometry, then pricing, then retry safety — a sensible priority order. Sentences are long and clause-dense, but every clause carries operational information; there is no filler to remove.

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 7-parameter, credit-spending, destructive tool with no output schema, the definition covers the essentials an agent needs: what is produced, what it costs, how to source the price, geometry defaults, and safe retry behavior. The remaining gap is the unexplained destructive side effect and the absence of any statement about the returned result (e.g., a new photo id).

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?

With only 14% schema description coverage, the description carries most of the load and does so reasonably: x, y and w are defined as fractions (0 to 1) of the photo's left edge, top edge and width, with the default centred-largest-frame behavior spelled out. max_credits is tied to prices obtained from get_shoot or list_photos. Only 'ratio' is left implicit, referred to merely as 'the given shape' even though its enum values are self-explanatory.

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 opening sentence states a specific verb and resource: it cuts a frame of a given shape out of a user's photo and upscales that frame to a full photo, charging credits. That is concrete enough to act on immediately. It does not, however, differentiate the tool from the sibling 'upscale' (or 'reroll'), which an agent could reasonably confuse it with given the overlapping upscaling language.

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?

It describes the geometry defaults explicitly ('left out, the largest frame is centred') and routes the agent to get_shoot or list_photos to find the price for max_credits. It also gives a concrete recovery procedure when a call returned no answer: check list_photos before retrying. No explicit exclusion tells the agent when to pick 'upscale' instead, so it stops short of full when/when-not coverage.

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